Skip to content

tanguilp/oidc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OIDC

Convenience functions to work with OpenID Connect

It includes:

  • functions to verify with ID tokens (OIDC.IDToken.verify/3, OIDC.IDToken.verify_hash/4 and OIDC.IDToken.verify_hash_if_present/4)
  • functions to authenticate using OpenID Connect flows (OIDC.Auth.gen_challenge/1, OIDC.Auth.request_uri/2 and OIDC.Auth.verify_response/2)

Installation

def deps do
  [
    {:oidc, "~> 0.4"},
    {:hackney, "~> 1.0"}
  ]
end

The 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

About

Convenience functions to work with OpenID Connect

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages