{"action":"opened","issue":{"url":"https://api.github.com/repos/Uber5/oauth2-oidc/issues/6","repository_url":"https://api.github.com/repos/Uber5/oauth2-oidc","labels_url":"https://api.github.com/repos/Uber5/oauth2-oidc/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Uber5/oauth2-oidc/issues/6/comments","events_url":"https://api.github.com/repos/Uber5/oauth2-oidc/issues/6/events","html_url":"https://github.com/Uber5/oauth2-oidc/issues/6","id":330701699,"node_id":"MDU6SXNzdWUzMzA3MDE2OTk=","number":6,"title":"redirect_uri for unknown protocols results in error on redirect after auth","user":{"login":"Chris927","id":486984,"node_id":"MDQ6VXNlcjQ4Njk4NA==","avatar_url":"https://avatars0.githubusercontent.com/u/486984?v=4","gravatar_id":"","url":"https://api.github.com/users/Chris927","html_url":"https://github.com/Chris927","followers_url":"https://api.github.com/users/Chris927/followers","following_url":"https://api.github.com/users/Chris927/following{/other_user}","gists_url":"https://api.github.com/users/Chris927/gists{/gist_id}","starred_url":"https://api.github.com/users/Chris927/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chris927/subscriptions","organizations_url":"https://api.github.com/users/Chris927/orgs","repos_url":"https://api.github.com/users/Chris927/repos","events_url":"https://api.github.com/users/Chris927/events{/privacy}","received_events_url":"https://api.github.com/users/Chris927/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-08T15:22:32Z","updated_at":"2018-06-08T15:22:32Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"... and this is an issue when using OAuth2 from e.g. a native mobile app, as the protocol is dictated by the app, and the protocol in this case is not a \"known one\".\r\n\r\n# Observed\r\n\r\nOn `GET /authorize`, after entering user credentials, received the following error:\r\n\r\n```JSON\r\n{\"error\":{\"error\":\"E_VALIDATION\",\"status\":400,\"summary\":\"1 attribute is invalid\",\"model\":\"auth\",\"invalidAttributes\":{\"redirectUri\":[{\"rule\":\"url\",\"message\":\"`undefined` should be a url (instead of \\\"zzz://auth\\\", which is a string)\"}]}}}\r\n```\r\n\r\nwhere `zzz` above is the protocol representing the app.\r\n\r\n# Expected\r\n\r\nThe HTTP response redirects to `zzz://auth`.\r\n"}}
{"actor":{"display_login":"Chris927"}}