{"action":"created","issue":{"url":"https://api.github.com/repos/ueberauth/guardian/issues/136","repository_url":"https://api.github.com/repos/ueberauth/guardian","labels_url":"https://api.github.com/repos/ueberauth/guardian/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/ueberauth/guardian/issues/136/comments","events_url":"https://api.github.com/repos/ueberauth/guardian/issues/136/events","html_url":"https://github.com/ueberauth/guardian/issues/136","id":149278081,"number":136,"title":"Following Secret Key examples with JOSE leads to an error","user":{"login":"ospaarmann","id":308086,"avatar_url":"https://avatars.githubusercontent.com/u/308086?v=3","gravatar_id":"","url":"https://api.github.com/users/ospaarmann","html_url":"https://github.com/ospaarmann","followers_url":"https://api.github.com/users/ospaarmann/followers","following_url":"https://api.github.com/users/ospaarmann/following{/other_user}","gists_url":"https://api.github.com/users/ospaarmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ospaarmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ospaarmann/subscriptions","organizations_url":"https://api.github.com/users/ospaarmann/orgs","repos_url":"https://api.github.com/users/ospaarmann/repos","events_url":"https://api.github.com/users/ospaarmann/events{/privacy}","received_events_url":"https://api.github.com/users/ospaarmann/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ueberauth/guardian/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-18T21:30:37Z","updated_at":"2016-04-18T21:42:41Z","closed_at":null,"body":"When following the examples in the Readme.md for using JOSE.JWK to create / read in keys from a password protected file I always encounter the error \r\n\r\n```\r\n** (Mix.Config.LoadError) could not load config config/config.exs\r\n    ** (UndefinedFunctionError) undefined function JOSE.JWK.from_file/2 (module JOSE.JWK is not available)\r\n```\r\n\r\nThis is the code in my config.exs\r\n\r\n```\r\n# Configure Guardian for JWT Authentication\r\nconfig :guardian, Guardian,\r\n  allowed_algos: [\"HS512\"], # optional\r\n  verify_module: Guardian.JWT,  # optional\r\n  issuer: \"MyApp\",\r\n  ttl: { 30, :days },\r\n  verify_issuer: true, # optional\r\n  secret_key:  System.get_env(\"GUARDIAN_KEY_PASSPHRASE\") |> JOSE.JWK.from_file(System.get_env(\"GUARDIAN_KEY_FILE\")),\r\n  serializer: MyApp.GuardianSerializer\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ueberauth/guardian/issues/comments/211594829","html_url":"https://github.com/ueberauth/guardian/issues/136#issuecomment-211594829","issue_url":"https://api.github.com/repos/ueberauth/guardian/issues/136","id":211594829,"user":{"login":"doomspork","id":73386,"avatar_url":"https://avatars.githubusercontent.com/u/73386?v=3","gravatar_id":"","url":"https://api.github.com/users/doomspork","html_url":"https://github.com/doomspork","followers_url":"https://api.github.com/users/doomspork/followers","following_url":"https://api.github.com/users/doomspork/following{/other_user}","gists_url":"https://api.github.com/users/doomspork/gists{/gist_id}","starred_url":"https://api.github.com/users/doomspork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doomspork/subscriptions","organizations_url":"https://api.github.com/users/doomspork/orgs","repos_url":"https://api.github.com/users/doomspork/repos","events_url":"https://api.github.com/users/doomspork/events{/privacy}","received_events_url":"https://api.github.com/users/doomspork/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T21:42:41Z","updated_at":"2016-04-18T21:42:41Z","body":"@ospaarmann what about  `Guardian.config(:secret_key).()`?"}}