View Source OIDC
Convenience functions to work with OpenID Connect
It includes:
- functions to verify with ID tokens (
OIDC.IDToken.verify/3,OIDC.IDToken.verify_hash/4andOIDC.IDToken.verify_hash_if_present/4) - functions to authenticate using OpenID Connect flows (
OIDC.Auth.gen_challenge/1,OIDC.Auth.request_uri/2andOIDC.Auth.verify_response/2)
installation
Installation
def deps do
[
{:oidc, "~> 0.5"},
{:hackney, "~> 1.0"}
]
endThe hackney dependency is used as the default adapter for Tesla. Another one can be used
instead (see
https://github.com/teamon/tesla#adapters) and then
has to be configured in your config.exs:
config :tesla, adapter: Tesla.Adapter.AnotherOne