{"action":"created","issue":{"url":"https://api.github.com/repos/manfredsteyer/angular-oauth2-oidc/issues/216","repository_url":"https://api.github.com/repos/manfredsteyer/angular-oauth2-oidc","labels_url":"https://api.github.com/repos/manfredsteyer/angular-oauth2-oidc/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/manfredsteyer/angular-oauth2-oidc/issues/216/comments","events_url":"https://api.github.com/repos/manfredsteyer/angular-oauth2-oidc/issues/216/events","html_url":"https://github.com/manfredsteyer/angular-oauth2-oidc/issues/216","id":289536947,"number":216,"title":"Custom state causes error with initImplicitFlow and Miscrosoft Azure AD B2C","user":{"login":"merken","id":187081,"avatar_url":"https://avatars1.githubusercontent.com/u/187081?v=4","gravatar_id":"","url":"https://api.github.com/users/merken","html_url":"https://github.com/merken","followers_url":"https://api.github.com/users/merken/followers","following_url":"https://api.github.com/users/merken/following{/other_user}","gists_url":"https://api.github.com/users/merken/gists{/gist_id}","starred_url":"https://api.github.com/users/merken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merken/subscriptions","organizations_url":"https://api.github.com/users/merken/orgs","repos_url":"https://api.github.com/users/merken/repos","events_url":"https://api.github.com/users/merken/events{/privacy}","received_events_url":"https://api.github.com/users/merken/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-01-18T08:01:55Z","updated_at":"2018-05-12T20:46:42Z","closed_at":"2018-05-12T20:46:42Z","author_association":"NONE","body":"Package version 3.1.4\r\n\r\nWhen calling initImplicitFlow(route:string) using Azure B2C OpenId, the state is URL encoded.\r\nThis causes issues at the side of Microsoft.\r\n\r\nSee the generated URI from createLoginUrl :\r\nhttps://login.microsoftonline.com/merken.onmicrosoft.com/oauth2/v2.0/\r\nauthorize?p=b2c_1_mrkn_si&response_type=id_token%20token&client_id=454caa98-b525-4c00-8e01-fc1e7bf477e4&\r\nstate=Z6wkN5gVwAozqZNIgaGUg7h1QJKfD4kMcxKyxmkq%3B%2Ftasks&\r\nredirect_uri=https%3A%2F%2Flocalhost%3A3000%2Findex.html&scope=openid%20https%3A%2F%2Fmerken.onmicrosoft.com%2Fauthapp%2Fread_write&nonce=Z6wkN5gVwAozqZNIgaGUg7h1QJKfD4kMcxKyxmkq\r\n\r\nThe route was '/tasks', as a result %2Ftask is added to the state, the OpenId service fails to login.\r\n\r\nWithout state, the login succeeds :\r\nhttps://login.microsoftonline.com/merken.onmicrosoft.com/oauth2/v2.0/\r\nauthorize?p=b2c_1_mrkn_si&response_type=id_token%20token&client_id=454caa98-b525-4c00-8e01-fc1e7bf477e4&\r\nstate=04iHQ6HqqZMQBqGnHSNkqh6fOTJnptmzuCwwq7kl\r\n&redirect_uri=https%3A%2F%2Flocalhost%3A3000%2Findex.html&scope=openid%20https%3A%2F%2Fmerken.onmicrosoft.com%2Fauthapp%2Fread_write&nonce=04iHQ6HqqZMQBqGnHSNkqh6fOTJnptmzuCwwq7kl\r\n\r\n\r\nSuggestion: maybe base64 encode the complete payload, this will likely not generate any characters subject to URI encoding."},"comment":{"url":"https://api.github.com/repos/manfredsteyer/angular-oauth2-oidc/issues/comments/388581831","html_url":"https://github.com/manfredsteyer/angular-oauth2-oidc/issues/216#issuecomment-388581831","issue_url":"https://api.github.com/repos/manfredsteyer/angular-oauth2-oidc/issues/216","id":388581831,"user":{"login":"manfredsteyer","id":1573728,"avatar_url":"https://avatars1.githubusercontent.com/u/1573728?v=4","gravatar_id":"","url":"https://api.github.com/users/manfredsteyer","html_url":"https://github.com/manfredsteyer","followers_url":"https://api.github.com/users/manfredsteyer/followers","following_url":"https://api.github.com/users/manfredsteyer/following{/other_user}","gists_url":"https://api.github.com/users/manfredsteyer/gists{/gist_id}","starred_url":"https://api.github.com/users/manfredsteyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manfredsteyer/subscriptions","organizations_url":"https://api.github.com/users/manfredsteyer/orgs","repos_url":"https://api.github.com/users/manfredsteyer/repos","events_url":"https://api.github.com/users/manfredsteyer/events{/privacy}","received_events_url":"https://api.github.com/users/manfredsteyer/received_events","type":"User","site_admin":false},"created_at":"2018-05-12T20:46:42Z","updated_at":"2018-05-12T20:46:42Z","author_association":"OWNER","body":"@TomWeps thx for the PR. It's merged and it will land soon."}}
{"actor":{"display_login":"manfredsteyer"}}