Exemplo n.º 1
0
        public IActionResult View(int id)
        {
            var client = _clientService.GetClient(id);

            if (client == null)
            {
                return(NotFound());
            }

            ViewBag.IdentityResources = _identityResourceService.GetIdentityResources();
            ViewBag.ApiScopes         = _apiScopeService.GetApiScopes();
            ViewBag.AllowedScopes     = client.AllowedScopes.Select(s => s.Scope).ToList();

            var input = _mapper.Map <ClientInputModel>(client);

            input.ClientType = client.GetClientType();
            return(View(input));
        }
 public IActionResult Index()
 {
     return(View(_identityResourceService.GetIdentityResources()));
 }