{"action":"created","issue":{"url":"https://api.github.com/repos/iaincollins/next-auth/issues/39","repository_url":"https://api.github.com/repos/iaincollins/next-auth","labels_url":"https://api.github.com/repos/iaincollins/next-auth/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/iaincollins/next-auth/issues/39/comments","events_url":"https://api.github.com/repos/iaincollins/next-auth/issues/39/events","html_url":"https://github.com/iaincollins/next-auth/issues/39","id":349733212,"node_id":"MDU6SXNzdWUzNDk3MzMyMTI=","number":39,"title":"Trying to use with keycloak-passport","user":{"login":"garmeeh","id":13333582,"node_id":"MDQ6VXNlcjEzMzMzNTgy","avatar_url":"https://avatars1.githubusercontent.com/u/13333582?v=4","gravatar_id":"","url":"https://api.github.com/users/garmeeh","html_url":"https://github.com/garmeeh","followers_url":"https://api.github.com/users/garmeeh/followers","following_url":"https://api.github.com/users/garmeeh/following{/other_user}","gists_url":"https://api.github.com/users/garmeeh/gists{/gist_id}","starred_url":"https://api.github.com/users/garmeeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garmeeh/subscriptions","organizations_url":"https://api.github.com/users/garmeeh/orgs","repos_url":"https://api.github.com/users/garmeeh/repos","events_url":"https://api.github.com/users/garmeeh/events{/privacy}","received_events_url":"https://api.github.com/users/garmeeh/received_events","type":"User","site_admin":false},"labels":[{"id":818290553,"node_id":"MDU6TGFiZWw4MTgyOTA1NTM=","url":"https://api.github.com/repos/iaincollins/next-auth/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":818290559,"node_id":"MDU6TGFiZWw4MTgyOTA1NTk=","url":"https://api.github.com/repos/iaincollins/next-auth/labels/question","name":"question","color":"d876e3","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-08-11T13:12:57Z","updated_at":"2018-08-11T14:59:42Z","closed_at":null,"author_association":"NONE","body":"I have been trying to use next-auth with this [keycloak-passport Strategy](https://www.npmjs.com/package/@exlinc/keycloak-passport). (I did have to modify the strategy's name to be lowercase to be able to test it out)\r\n\r\nI can log in no problem and it creates a session. Only problem is, `getProfile()` doesn't seem to fire at all so the session just contains the `csrfSecret` but no user. Keycloak recognises I'm already logged in when trying to log in. \r\n\r\nHave been trying to debug through what could be happening but couldn't get to the bottom of it. Any direction on what might be the issue would be great. If I get it working would be happy to submit some documentation on it. "},"comment":{"url":"https://api.github.com/repos/iaincollins/next-auth/issues/comments/412280570","html_url":"https://github.com/iaincollins/next-auth/issues/39#issuecomment-412280570","issue_url":"https://api.github.com/repos/iaincollins/next-auth/issues/39","id":412280570,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjI4MDU3MA==","user":{"login":"iaincollins","id":595695,"node_id":"MDQ6VXNlcjU5NTY5NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/595695?v=4","gravatar_id":"","url":"https://api.github.com/users/iaincollins","html_url":"https://github.com/iaincollins","followers_url":"https://api.github.com/users/iaincollins/followers","following_url":"https://api.github.com/users/iaincollins/following{/other_user}","gists_url":"https://api.github.com/users/iaincollins/gists{/gist_id}","starred_url":"https://api.github.com/users/iaincollins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iaincollins/subscriptions","organizations_url":"https://api.github.com/users/iaincollins/orgs","repos_url":"https://api.github.com/users/iaincollins/repos","events_url":"https://api.github.com/users/iaincollins/events{/privacy}","received_events_url":"https://api.github.com/users/iaincollins/received_events","type":"User","site_admin":false},"created_at":"2018-08-11T14:59:42Z","updated_at":"2018-08-11T14:59:42Z","author_association":"OWNER","body":"Oh wait boo, I just realised `next-auth` already does this for you! Damn. Nevermind that then.\r\n\r\nSo err sorry something else is going on with the service. :-(\r\n\r\n`keycloak-passport` uses `passport-oauth2` under the hood and there are [a bunch of open issues about callbacks not firing ](https://github.com/jaredhanson/passport-oauth2/issues) there.  I'm not sure what's going on or how you can fix it, as it seems like it's not something `next-auth` can fix. :-/\r\n\r\nI would maybe as the maintainer of `passport-keycloak` if they have any tips."}}
{"actor":{"display_login":"iaincollins"}}