{"action":"closed","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer4/issues/1628","repository_url":"https://api.github.com/repos/IdentityServer/IdentityServer4","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer4/issues/1628/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer4/issues/1628/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer4/issues/1628/events","html_url":"https://github.com/IdentityServer/IdentityServer4/issues/1628","id":265740683,"number":1628,"title":"Identity Server Hosted as Resource","user":{"login":"satyajit-behera","id":10031739,"avatar_url":"https://avatars1.githubusercontent.com/u/10031739?v=4","gravatar_id":"","url":"https://api.github.com/users/satyajit-behera","html_url":"https://github.com/satyajit-behera","followers_url":"https://api.github.com/users/satyajit-behera/followers","following_url":"https://api.github.com/users/satyajit-behera/following{/other_user}","gists_url":"https://api.github.com/users/satyajit-behera/gists{/gist_id}","starred_url":"https://api.github.com/users/satyajit-behera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satyajit-behera/subscriptions","organizations_url":"https://api.github.com/users/satyajit-behera/orgs","repos_url":"https://api.github.com/users/satyajit-behera/repos","events_url":"https://api.github.com/users/satyajit-behera/events{/privacy}","received_events_url":"https://api.github.com/users/satyajit-behera/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-16T11:46:03Z","updated_at":"2017-10-16T22:20:49Z","closed_at":"2017-10-16T22:20:49Z","author_association":"NONE","body":"Is it possible to host IdentityServer itself as a resource also, so that the token received from the server can be used to access some custom resources (APIs) hosted within the identity server.\r\n\r\nI tried to configure it as a resource as done in the sample API, but it does not authorize. Accessing this with a client with scope \"serverapi\"\r\n\r\n```\r\nservices.AddAuthentication(IdentityServerAuthenticationDefaults.AuthenticationScheme)\r\n                .AddIdentityServerAuthentication(options =>\r\n                {\r\n                    options.Authority = Constants.Authority;\r\n                    options.RequireHttpsMetadata = false;\r\n\r\n                    options.ApiName = \"serverapi\";\r\n                    options.ApiSecret = \"secret\";\r\n                });\r\n```\r\n"}}
{"actor":{"display_login":"brockallen"}}