ExOauth2Provider v0.2.3 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?(String.t(), String.t()) :: boolean()
matches?(
  %URI{
    authority: term(),
    fragment: term(),
    host: term(),
    path: term(),
    port: term(),
    query: term(),
    scheme: term(),
    userinfo: term()
  },
  %URI{
    authority: term(),
    fragment: term(),
    host: term(),
    path: term(),
    port: term(),
    query: term(),
    scheme: term(),
    userinfo: term()
  }
) :: boolean()

Check if uri matches client uri

Link to this function native_redirect_uri?(url) View Source
native_redirect_uri?(String.t()) :: boolean()

Check if a url is native

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

Adds query parameters to uri

Link to this function valid_for_authorization?(url, client_url) View Source
valid_for_authorization?(String.t(), String.t()) :: boolean()

Check if a url matches a client redirect_uri

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

Validates if a url can be used as a redirect_uri