{"action":"created","issue":{"url":"https://api.github.com/repos/ueberauth/guardian/issues/211","repository_url":"https://api.github.com/repos/ueberauth/guardian","labels_url":"https://api.github.com/repos/ueberauth/guardian/issues/211/labels{/name}","comments_url":"https://api.github.com/repos/ueberauth/guardian/issues/211/comments","events_url":"https://api.github.com/repos/ueberauth/guardian/issues/211/events","html_url":"https://github.com/ueberauth/guardian/issues/211","id":181201208,"number":211,"title":"Can I verify a JWToken created by Auth0 ?","user":{"login":"alduro","id":183364,"avatar_url":"https://avatars.githubusercontent.com/u/183364?v=3","gravatar_id":"","url":"https://api.github.com/users/alduro","html_url":"https://github.com/alduro","followers_url":"https://api.github.com/users/alduro/followers","following_url":"https://api.github.com/users/alduro/following{/other_user}","gists_url":"https://api.github.com/users/alduro/gists{/gist_id}","starred_url":"https://api.github.com/users/alduro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alduro/subscriptions","organizations_url":"https://api.github.com/users/alduro/orgs","repos_url":"https://api.github.com/users/alduro/repos","events_url":"https://api.github.com/users/alduro/events{/privacy}","received_events_url":"https://api.github.com/users/alduro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-05T16:19:08Z","updated_at":"2016-10-05T16:39:49Z","closed_at":null,"body":"Should I implement my own verify_module ?\r\n\r\nconfig.ex\r\n\r\n```\r\nconfig :guardian, Guardian,\r\n    allowed_algos: [\"HS256\"],\r\n   verify_module: BlackMamba.JWTHelpers,\r\n    issuer: System.get_env(\"AUTH0_DOMAIN\"),\r\n  #  ttl: { 7, :days },\r\n    verify_issuer: true,\r\n  #  secret_key: System.get_env(\"GUARDIAN_SECRET\") || raise(\"Missing GUARDIAN_SECRET\"),\r\n    secret_key: System.get_env(\"AUTH0_CLIENT_SECRET\") || raise(\"Missing AUTH0_CLIENT_SECRET\"),\r\n    serializer: BlackMamba.GuardianSerializer\r\n```\r\n\r\nrouter.ex\r\n\r\n``` \r\npipeline :graphql do\r\n     plug GraphqlLogger\r\n     plug Guardian.Plug.VerifyHeader, realm: \"Bearer\", key: System.get_env(\"AUTH0_CLIENT_SECRET\")\r\n#   plug Guardian.Plug.EnsureAuthenticated\r\n     plug Guardian.Plug.LoadResource\r\n     plug BlackMamba.Context\r\n end\r\n```"},"comment":{"url":"https://api.github.com/repos/ueberauth/guardian/issues/comments/251729219","html_url":"https://github.com/ueberauth/guardian/issues/211#issuecomment-251729219","issue_url":"https://api.github.com/repos/ueberauth/guardian/issues/211","id":251729219,"user":{"login":"enilsen16","id":5035876,"avatar_url":"https://avatars.githubusercontent.com/u/5035876?v=3","gravatar_id":"","url":"https://api.github.com/users/enilsen16","html_url":"https://github.com/enilsen16","followers_url":"https://api.github.com/users/enilsen16/followers","following_url":"https://api.github.com/users/enilsen16/following{/other_user}","gists_url":"https://api.github.com/users/enilsen16/gists{/gist_id}","starred_url":"https://api.github.com/users/enilsen16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enilsen16/subscriptions","organizations_url":"https://api.github.com/users/enilsen16/orgs","repos_url":"https://api.github.com/users/enilsen16/repos","events_url":"https://api.github.com/users/enilsen16/events{/privacy}","received_events_url":"https://api.github.com/users/enilsen16/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T16:39:49Z","updated_at":"2016-10-05T16:39:49Z","body":"I might be wrong but I think the idea is to use the token from auth0, rather than have guardian create it. Either way I am interested in this as well. \r\n\r\nRight now I verify a correct response from auth0 and then have guardian create a separate token.\r\n\r\nI added Auth0 login to the `phoenix_guardian` repo as an example. https://github.com/enilsen16/phoenix_guardian/tree/auth0"}}
{"actor":{"display_login":"enilsen16"}}