Boruta.Oauth.Client (Boruta core v1.2.0) View Source

OAuth client schema

Link to this section Summary

Link to this section Types

Specs

t() :: %Boruta.Oauth.Client{
  access_token_ttl: integer(),
  authorization_code_ttl: integer(),
  authorize_scope: boolean(),
  authorized_scopes: [Boruta.Oauth.Scope.t()],
  id: any(),
  name: String.t(),
  pkce: boolean(),
  private_key: String.t(),
  public_key: String.t(),
  public_refresh_token: boolean(),
  redirect_uris: [String.t()],
  refresh_token_ttl: integer(),
  secret: String.t(),
  supported_grant_types: [String.t()]
}

Link to this section Functions

Link to this function

check_secret(client, secret)

View Source

Specs

check_secret(client :: t(), secret :: String.t()) :: :ok | {:error, String.t()}
Link to this function

grant_type_supported?(client, grant_type)

View Source

Specs

grant_type_supported?(client :: t(), grant_type :: String.t()) :: boolean()
Link to this function

public_refresh_token?(client)

View Source

Specs

public_refresh_token?(client :: t()) :: boolean()