{"action":"created","issue":{"url":"https://api.github.com/repos/pac4j/pac4j/issues/413","labels_url":"https://api.github.com/repos/pac4j/pac4j/issues/413/labels{/name}","comments_url":"https://api.github.com/repos/pac4j/pac4j/issues/413/comments","events_url":"https://api.github.com/repos/pac4j/pac4j/issues/413/events","html_url":"https://github.com/pac4j/pac4j/issues/413","id":123809320,"number":413,"title":"Support setting/getting state parameter","user":{"login":"Schlogen","id":1583789,"avatar_url":"https://avatars.githubusercontent.com/u/1583789?v=3","gravatar_id":"","url":"https://api.github.com/users/Schlogen","html_url":"https://github.com/Schlogen","followers_url":"https://api.github.com/users/Schlogen/followers","following_url":"https://api.github.com/users/Schlogen/following{/other_user}","gists_url":"https://api.github.com/users/Schlogen/gists{/gist_id}","starred_url":"https://api.github.com/users/Schlogen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Schlogen/subscriptions","organizations_url":"https://api.github.com/users/Schlogen/orgs","repos_url":"https://api.github.com/users/Schlogen/repos","events_url":"https://api.github.com/users/Schlogen/events{/privacy}","received_events_url":"https://api.github.com/users/Schlogen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-24T14:38:49Z","updated_at":"2015-12-26T17:40:34Z","closed_at":null,"body":"Currently it's not possible to set the state parameter for OAuth 2 authorization URLs. I wouldn't mind submitting a PR, however I'd like to understand the reasoning behind the current implementation:\r\n\r\nhttps://github.com/pac4j/pac4j/blob/master/pac4j-oauth/src/main/java/org/pac4j/oauth/client/BaseOAuth20Client.java#L70\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/pac4j/pac4j/issues/comments/167347728","html_url":"https://github.com/pac4j/pac4j/issues/413#issuecomment-167347728","issue_url":"https://api.github.com/repos/pac4j/pac4j/issues/413","id":167347728,"user":{"login":"Schlogen","id":1583789,"avatar_url":"https://avatars.githubusercontent.com/u/1583789?v=3","gravatar_id":"","url":"https://api.github.com/users/Schlogen","html_url":"https://github.com/Schlogen","followers_url":"https://api.github.com/users/Schlogen/followers","following_url":"https://api.github.com/users/Schlogen/following{/other_user}","gists_url":"https://api.github.com/users/Schlogen/gists{/gist_id}","starred_url":"https://api.github.com/users/Schlogen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Schlogen/subscriptions","organizations_url":"https://api.github.com/users/Schlogen/orgs","repos_url":"https://api.github.com/users/Schlogen/repos","events_url":"https://api.github.com/users/Schlogen/events{/privacy}","received_events_url":"https://api.github.com/users/Schlogen/received_events","type":"User","site_admin":false},"created_at":"2015-12-26T17:40:34Z","updated_at":"2015-12-26T17:40:34Z","body":"@leleuj Essentially I'm proposing to change the behavior of the BaseOAuth20Client to allow the user of the classes to set their own custom state data and then have the ability to retrieve it after the callback. "}}