{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/3372","repository_url":"https://api.github.com/repos/IdentityServer/IdentityServer3","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/3372/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/3372/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/3372/events","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/3372","id":189683221,"number":3372,"title":"Q: Token based auth API and Javascript, can you protect other clientside files from being accessed?","user":{"login":"FreeFrags","id":9535811,"avatar_url":"https://avatars.githubusercontent.com/u/9535811?v=3","gravatar_id":"","url":"https://api.github.com/users/FreeFrags","html_url":"https://github.com/FreeFrags","followers_url":"https://api.github.com/users/FreeFrags/followers","following_url":"https://api.github.com/users/FreeFrags/following{/other_user}","gists_url":"https://api.github.com/users/FreeFrags/gists{/gist_id}","starred_url":"https://api.github.com/users/FreeFrags/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreeFrags/subscriptions","organizations_url":"https://api.github.com/users/FreeFrags/orgs","repos_url":"https://api.github.com/users/FreeFrags/repos","events_url":"https://api.github.com/users/FreeFrags/events{/privacy}","received_events_url":"https://api.github.com/users/FreeFrags/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-16T12:01:01Z","updated_at":"2016-11-16T12:48:20Z","closed_at":"2016-11-16T12:48:20Z","body":"### Question\r\nIf you would use a similar setup as the following examples:\r\n- Simple WebAPI\r\n- Javascript OIDCClient and usermanager\r\n\r\nWould it be possible to protect other clientside files from being accessed? Say for example i have a directory with certain files which you need a certain role to be able to access them.\r\n\r\nWould it be possible to protect my SPA from being accessed before logging in?\r\n\r\nOr is there a better solution which would have you end up with a protected api, folders/files on a server, SPA and a silent renew mechanism like there is in the OIDCClient?"},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/comments/260938089","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/3372#issuecomment-260938089","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/3372","id":260938089,"user":{"login":"brockallen","id":649492,"avatar_url":"https://avatars.githubusercontent.com/u/649492?v=3","gravatar_id":"","url":"https://api.github.com/users/brockallen","html_url":"https://github.com/brockallen","followers_url":"https://api.github.com/users/brockallen/followers","following_url":"https://api.github.com/users/brockallen/following{/other_user}","gists_url":"https://api.github.com/users/brockallen/gists{/gist_id}","starred_url":"https://api.github.com/users/brockallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockallen/subscriptions","organizations_url":"https://api.github.com/users/brockallen/orgs","repos_url":"https://api.github.com/users/brockallen/repos","events_url":"https://api.github.com/users/brockallen/events{/privacy}","received_events_url":"https://api.github.com/users/brockallen/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T12:48:20Z","updated_at":"2016-11-16T12:48:20Z","body":"This seems to be a general question about IdentityServer - not a bug report or an issue.\r\n\r\nPlease use StackOverflow for that. This has the advantage that questions and answers can be easily found by search engines, and that there are more people answering questions than just us.\r\n\r\nFor IdentityServer3\r\nhttps://stackoverflow.com/questions/tagged/?tagnames=identityserver3&sort=newest\r\n\r\nFor IdentityServer4\r\nhttps://stackoverflow.com/questions/tagged/?tagnames=identityserver4&sort=newest\r\n\r\nFor commercial support\r\nhttps://identityserver.io/"}}
{"actor":{"display_login":"brockallen"}}