ex_okta_auth v0.1.0 ExOktaAuth.Okta View Source

Implements strategy for authenticating with Okta.

Link to this section Summary

Functions

Given necessary arguments generates authorization URL and parameters for interacting with Okta as a provider

Given necessary arguments generates authorization URL and parameters for interacting with Okta as a provider then redirects to given url to commence auth sequence

Creates a new ExOAuth2 client that will be used to communicate with Okta

Retrieve an access token and authenticate via authentication header

Retrieve an access token but does not send authorization header to authorization server

Retrieve an access token but does not send the authorization header to authorization server. This is necessary in the case of okta since since otherwise okta will complain.

Retrieve the authenticated users profile information

Link to this section Functions

Link to this function

authorize_url(client, params)

View Source

Callback implementation for ExOAuth2.Strategy.authorize_url/2.

Given necessary arguments generates authorization URL and parameters for interacting with Okta as a provider

Given necessary arguments generates authorization URL and parameters for interacting with Okta as a provider then redirects to given url to commence auth sequence

Creates a new ExOAuth2 client that will be used to communicate with Okta

Link to this function

get_token(client, params, headers)

View Source

Callback implementation for ExOAuth2.Strategy.get_token/3.

Link to this function

get_token!(params \\ [], headers \\ [], opts \\ [])

View Source

Retrieve an access token and authenticate via authentication header

Link to this function

get_token_without_auth(client, params, headers)

View Source

Retrieve an access token but does not send authorization header to authorization server

Link to this function

get_token_without_auth!(params \\ [], headers \\ [], opts \\ [])

View Source

Retrieve an access token but does not send the authorization header to authorization server. This is necessary in the case of okta since since otherwise okta will complain.

Link to this function

get_user_info(client, headers \\ [], opts \\ [])

View Source

Retrieve the authenticated users profile information