Okta interface written in Elixir. Currently only supporting authentication (OpenID/OAuth V2).
Generates URL from which you receive a short-lived access token.
Returns a struct containing tokens, expires_in, and metadata.
%{
"access_token" => String,
"expires_in" => Integer,
"id_token" => String,
"scope" => String,
"token_type" => String
}
Checks if the token provided is valid.
Add okta_elixir
to your list of dependencies in mix.exs
:
def deps do
[
{:okta_elixir, "~> 0.2.0"}
]
end
Add the required configuration to config/config.exs.
config :okta_auth,
domain: "",
redirect_uri: "",
client_id: "",
client_secret: ""