{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Security/issues/1685","repository_url":"https://api.github.com/repos/aspnet/Security","labels_url":"https://api.github.com/repos/aspnet/Security/issues/1685/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Security/issues/1685/comments","events_url":"https://api.github.com/repos/aspnet/Security/issues/1685/events","html_url":"https://github.com/aspnet/Security/issues/1685","id":303586640,"number":1685,"title":"SaveTokens & AccessType do nothing","user":{"login":"strich","id":987896,"avatar_url":"https://avatars3.githubusercontent.com/u/987896?v=4","gravatar_id":"","url":"https://api.github.com/users/strich","html_url":"https://github.com/strich","followers_url":"https://api.github.com/users/strich/followers","following_url":"https://api.github.com/users/strich/following{/other_user}","gists_url":"https://api.github.com/users/strich/gists{/gist_id}","starred_url":"https://api.github.com/users/strich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strich/subscriptions","organizations_url":"https://api.github.com/users/strich/orgs","repos_url":"https://api.github.com/users/strich/repos","events_url":"https://api.github.com/users/strich/events{/privacy}","received_events_url":"https://api.github.com/users/strich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-08T18:38:42Z","updated_at":"2018-03-12T16:35:38Z","closed_at":null,"author_association":"NONE","body":"Use case: For the past 2 weeks I've been trying to make the most simple application that uses Google auth and Identity. I need to use the access and refresh tokens once a user has signed up to do things on their behalf. \r\n\r\nI have been getting sporadic assistance in tickets #1667 and #1668, though there still seems to be no real consensus on how to achieve this task. [There is an issue to add an example project here](https://github.com/aspnet/AuthSamples/issues/29), and hopefully that will happen soon.\r\n\r\nThis issue is to specifically raise the fact that applying the options `SaveTokens = true` and `AccessType = \"Offline\"` appear to do nothing, or don't do what they purport to do. That is to say, `SaveTokens` doesn't save the access and refresh tokens to the db and `AccessType` doesn't appear to force a refresh token to be returned if there isn't one.\r\n\r\nIt could be they still do something, but require a lot of other backing code to work elsewhere? If so, it should be setup as such in the default auth templates."},"comment":{"url":"https://api.github.com/repos/aspnet/Security/issues/comments/372375120","html_url":"https://github.com/aspnet/Security/issues/1685#issuecomment-372375120","issue_url":"https://api.github.com/repos/aspnet/Security/issues/1685","id":372375120,"user":{"login":"strich","id":987896,"avatar_url":"https://avatars3.githubusercontent.com/u/987896?v=4","gravatar_id":"","url":"https://api.github.com/users/strich","html_url":"https://github.com/strich","followers_url":"https://api.github.com/users/strich/followers","following_url":"https://api.github.com/users/strich/following{/other_user}","gists_url":"https://api.github.com/users/strich/gists{/gist_id}","starred_url":"https://api.github.com/users/strich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strich/subscriptions","organizations_url":"https://api.github.com/users/strich/orgs","repos_url":"https://api.github.com/users/strich/repos","events_url":"https://api.github.com/users/strich/events{/privacy}","received_events_url":"https://api.github.com/users/strich/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T16:35:38Z","updated_at":"2018-03-12T16:35:38Z","author_association":"NONE","body":"I use the the .NET Core v2.1 ASPNET Template and add a standard google auth setup to Startup. I can make a demo app if you like, but I don't stray far from the template."}}
{"actor":{"display_login":"strich"}}