ExOauth2Provider v0.5.2 ExOauth2Provider.RedirectURI View Source

Functions for dealing with redirect uri.

Link to this section Summary

Functions

Check if uri matches client uri

Check if a url is native

Adds query parameters to uri

Check if a url matches a client redirect_uri

Validates if a url can be used as a redirect_uri

Link to this section Functions

Link to this function

matches?(uri, client_uri, config \\ []) View Source
matches?(binary(), binary(), keyword()) :: boolean()
matches?(URI.t(), URI.t(), keyword()) :: boolean()

Check if uri matches client uri

Link to this function

native_redirect_uri?(url, config) View Source
native_redirect_uri?(binary(), keyword()) :: boolean()

Check if a url is native

Link to this function

uri_with_query(uri, query) View Source
uri_with_query(binary() | URI.t(), map()) :: binary()

Adds query parameters to uri

Link to this function

valid_for_authorization?(url, client_url, config) View Source
valid_for_authorization?(binary(), binary(), keyword()) :: boolean()

Check if a url matches a client redirect_uri

Link to this function

validate(url, config) View Source
validate(binary() | nil, keyword()) :: {:ok, binary()} | {:error, binary()}

Validates if a url can be used as a redirect_uri