ExOauth2Provider v0.4.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) View Source
matches?(binary(), binary()) :: boolean()
matches?(URI.t(), URI.t()) :: boolean()

Check if uri matches client uri

Link to this function native_redirect_uri?(url) View Source
native_redirect_uri?(binary()) :: boolean()

Check if a url is native

Link to this function uri_with_query(uri, query) View Source
uri_with_query(binary() | URI.t(), binary()) :: URI.t()

Adds query parameters to uri

Link to this function valid_for_authorization?(url, client_url) View Source
valid_for_authorization?(binary(), binary()) :: boolean()

Check if a url matches a client redirect_uri

Link to this function validate(url) View Source
validate(binary() | nil) :: {:ok, binary()} | {:errror, binary()}

Validates if a url can be used as a redirect_uri