ExStoneOpenbank v0.1.2 ExStoneOpenbank.Config View Source

Configuration options for ExStoneOpenbank

Link to this section Summary

Functions

The Accounts URL for the given configuration name.

The API URL for the given configuration name.

The client_id for the given configuration name.

The consent_redirect_url for the given configuration name.

All options for the given configuration name.

The client_id for the given configuration name.

The Joken.Signer.t built from the private key of the given configuration name.

Validates given configuration and persists it during boot.

Link to this section Functions

Link to this function

accounts_url(name)

View Source
accounts_url(config_name :: atom()) :: String.t()

The Accounts URL for the given configuration name.

It's either:

depending if its a sandbox application or production.

Link to this function

api_url(name)

View Source
api_url(config_name :: atom()) :: String.t()

The API URL for the given configuration name.

It's either:

depending if its a sandbox application or production

Link to this function

client_id(name)

View Source
client_id(config_name :: atom()) :: String.t()
client_id(config_name :: atom()) :: String.t()

The client_id for the given configuration name.

Link to this function

options(name)

View Source
options(config_name :: atom()) :: Keyword.t()

All options for the given configuration name.

The client_id for the given configuration name.

Link to this function

signer(name)

View Source
signer(config_name :: atom()) :: Joken.Signer.t()

The Joken.Signer.t built from the private key of the given configuration name.

Link to this function

validate_and_persist(opts)

View Source
validate_and_persist(opts :: Keyword.t()) :: %{
  name: atom(),
  client_id: String.t(),
  signer: Joken.Signer.t(),
  sandbox?: boolean()
}

Validates given configuration and persists it during boot.