{"action":"closed","issue":{"url":"https://api.github.com/repos/IdentityModel/IdentityModel.OidcClient2/issues/98","repository_url":"https://api.github.com/repos/IdentityModel/IdentityModel.OidcClient2","labels_url":"https://api.github.com/repos/IdentityModel/IdentityModel.OidcClient2/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/IdentityModel/IdentityModel.OidcClient2/issues/98/comments","events_url":"https://api.github.com/repos/IdentityModel/IdentityModel.OidcClient2/issues/98/events","html_url":"https://github.com/IdentityModel/IdentityModel.OidcClient2/issues/98","id":385160516,"node_id":"MDU6SXNzdWUzODUxNjA1MTY=","number":98,"title":"can not redirect to redirect_uri and throw 404 not found","user":{"login":"jingliancui","id":16309962,"node_id":"MDQ6VXNlcjE2MzA5OTYy","avatar_url":"https://avatars2.githubusercontent.com/u/16309962?v=4","gravatar_id":"","url":"https://api.github.com/users/jingliancui","html_url":"https://github.com/jingliancui","followers_url":"https://api.github.com/users/jingliancui/followers","following_url":"https://api.github.com/users/jingliancui/following{/other_user}","gists_url":"https://api.github.com/users/jingliancui/gists{/gist_id}","starred_url":"https://api.github.com/users/jingliancui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jingliancui/subscriptions","organizations_url":"https://api.github.com/users/jingliancui/orgs","repos_url":"https://api.github.com/users/jingliancui/repos","events_url":"https://api.github.com/users/jingliancui/events{/privacy}","received_events_url":"https://api.github.com/users/jingliancui/received_events","type":"User","site_admin":false},"labels":[{"id":450382368,"node_id":"MDU6TGFiZWw0NTAzODIzNjg=","url":"https://api.github.com/repos/IdentityModel/IdentityModel.OidcClient2/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-11-28T08:49:53Z","updated_at":"2018-11-30T08:14:56Z","closed_at":"2018-11-30T08:14:56Z","author_association":"NONE","body":"[Xamarin.Forms Client App : IdServerXam.zip](https://github.com/IdentityModel/IdentityModel.OidcClient2/files/2623579/IdServerXam.zip)\r\n\r\n[public network's identity server ](https://auth.dotnetdevcoder.com/)\r\n\r\nthe client define in the identity server:\r\n\r\n```\r\nnew Client\r\n                {\r\n                    ClientId = \"xamarin\",\r\n\r\n                    ClientName = \"Xamarin Client\",\r\n\r\n                    AllowedGrantTypes = GrantTypes.HybridAndClientCredentials,\r\n\r\n                    ClientSecrets =\r\n                    {\r\n                        new Secret(\"secret\".Sha256())\r\n                    },\r\n\r\n                    RedirectUris = { \"xamarinformsclients://callback\" },\r\n\r\n                    AllowedScopes = new List<string>\r\n                    {\r\n                        IdentityServerConstants.StandardScopes.OpenId,\r\n                        IdentityServerConstants.StandardScopes.Profile                  \r\n                    },\r\n\r\n                    AllowOfflineAccess = true,\r\n                }\r\n```\r\n\r\nthe oidcoption in the Xamarin.forms:\r\n```\r\nvar options = new OidcClientOptions\r\n            {\r\n\r\n                Authority = \"https://auth.dotnetdevcoder.com/\",\r\n\r\n                ClientId = \"xamarin\",\r\n\r\n                ClientSecret = \"secret\",\r\n\r\n                Scope = \"openid profile\",\r\n\r\n                RedirectUri = \"xamarinformsclients://callback\",\r\n\r\n                ResponseMode = OidcClientOptions.AuthorizeResponseMode.Redirect,\r\n\r\n                Browser = browser\r\n            };\r\n```\r\n\r\nStep:\r\n1. run the client app (uwp or android)\r\n2. click the login button \r\n3. register an account\r\n4. use the account to login\r\n5. close the browser\r\n6. login again\r\n7. throw 404 not found\r\n\r\n\r\n![qq 20181128164807](https://user-images.githubusercontent.com/16309962/49139749-8c6f9180-f32d-11e8-98bb-445f50a6461d.jpg)\r\n![screenshot_20181128-164822](https://user-images.githubusercontent.com/16309962/49139779-998c8080-f32d-11e8-899f-db0f0575b38f.jpg)\r\n\r\n\r\n"}}
{"actor":{"display_login":"leastprivilege"}}