class

Authly::Configuration

Inherits Reference < Object

Instance methods

access_token_audience

The aud of the access tokens issued, i.e. which API they are for. Defaults to base_url. A resource server that sets the same audience on its verifier refuses tokens meant for others.

Source
access_token_audience=(access_token_audience : String | Nil)

The aud of the access tokens issued, i.e. which API they are for. Defaults to base_url. A resource server that sets the same audience on its verifier refuses tokens meant for others.

Source
access_ttl
Source
access_ttl=(access_ttl : Time::Span)
Source
algorithm
Source
algorithm=(algorithm : JWT::Algorithm)
Source
allow_dynamic_registration=(allow_dynamic_registration : Bool)

Dynamic Client Registration

Source
allow_dynamic_registration?

Dynamic Client Registration

Source
attempt_limiter

Throttles guessing at the device verification page. Share it between nodes, and make its increment atomic (see AttemptLimiter).

Source
attempt_limiter=(attempt_limiter : AttemptLimiter)

Throttles guessing at the device verification page. Share it between nodes, and make its increment atomic (see AttemptLimiter).

Source
attempt_source

Who a request counts as for attempt_limiter and registration_limiter: the client address by default. Behind a reverse proxy that is the proxy, so return the address your proxy vouches for (or nil to count by account only).

Source
attempt_source=(attempt_source : AttemptSource)

Who a request counts as for attempt_limiter and registration_limiter: the client address by default. Behind a reverse proxy that is the proxy, so return the address your proxy vouches for (or nil to count by account only).

Source
authenticate_registration
Source
authenticate_registration=(authenticate_registration : RegistrationAuthenticator | Nil)
Source
authenticate_user

The authorization endpoint (/oauth/authorize) and the device verification page (/device) act on behalf of a resource owner, and Authly does not own the login. The host application supplies the signed-in owner here, from its own session. It is the ONLY source of the subject: user_id and consent request parameters are never read. While it is unset those endpoints refuse every request.

Source
authenticate_user=(authenticate_user : OwnerAuthenticator | Nil)

The authorization endpoint (/oauth/authorize) and the device verification page (/device) act on behalf of a resource owner, and Authly does not own the login. The host application supplies the signed-in owner here, from its own session. It is the ONLY source of the subject: user_id and consent request parameters are never read. While it is unset those endpoints refuse every request.

Source
base_url

OpenID Connect Configuration

Source
base_url=(base_url : String)

OpenID Connect Configuration

Source
challenge_max_attempts
Source
challenge_max_attempts=(challenge_max_attempts : Int32)
Source
challenge_store

Challenge-Response Authentication

Source
challenge_store=(challenge_store : ChallengeStore)

Challenge-Response Authentication

Source
challenge_ttl
Source
challenge_ttl=(challenge_ttl : Time::Span)
Source
client_store
Source
client_store=(client_store : ClientStore)
Source
clients
Source
clients=(clients : AuthorizableClient)
Source
code_ttl
Source
code_ttl=(code_ttl : Time::Span)
Source
default_jarm_response_mode
Source
default_jarm_response_mode=(default_jarm_response_mode : String | Nil)
Source
device_attempt_limit

User code lookups one signed-in owner, and one source, may make at the device page per window (an approval is two).

Source
device_attempt_limit=(device_attempt_limit : Int32)

User code lookups one signed-in owner, and one source, may make at the device page per window (an approval is two).

Source
device_attempt_window
Source
device_attempt_window=(device_attempt_window : Time::Span)
Source
device_code_store
Source
device_code_store=(device_code_store : DeviceCodeStore)
Source
enforce_pkce=(enforce_pkce : Bool)

PKCE Enforcement

Source
enforce_pkce?

PKCE Enforcement

Source
enforce_pkce_s256=(enforce_pkce_s256 : Bool)
Source
enforce_pkce_s256?
Source
grant_types
Source
grant_types=(grant_types : Array(String))
Source
issuance_options

Trusted host callback; never populated from OAuth request parameters.

Source
issuance_options=(issuance_options : Proc(String, String, IssuanceOptions) | Nil)

Trusted host callback; never populated from OAuth request parameters.

Source
issue_refresh_tokens=(issue_refresh_tokens : Bool)
Source
issue_refresh_tokens?
Source
issuer
Source
issuer=(issuer : String)
Source
jarm_encryption_alg
Source
jarm_encryption_alg=(jarm_encryption_alg : String | Nil)
Source
jarm_encryption_enc
Source
jarm_encryption_enc=(jarm_encryption_enc : String | Nil)
Source
jarm_encryption_key
Source
jarm_encryption_key=(jarm_encryption_key : String | Nil)
Source
jarm_lifetime
Source
jarm_lifetime=(jarm_lifetime : Time::Span)
Source
jarm_signing_alg
Source
jarm_signing_alg=(jarm_signing_alg : JWT::Algorithm)
Source
jarm_signing_key

JWT Secured Authorization Response Mode (JARM)

Source
jarm_signing_key=(jarm_signing_key : String | Nil)

JWT Secured Authorization Response Mode (JARM)

Source
login_url

Optional. When nobody is signed in, redirect to the URL this returns (a login page that sends the owner back afterwards) instead of answering 401 login_required.

Source
login_url=(login_url : LoginRedirect | Nil)

Optional. When nobody is signed in, redirect to the URL this returns (a login page that sends the owner back afterwards) instead of answering 401 login_required.

Source
on_social_authenticated
Source
on_social_authenticated=(on_social_authenticated : Proc(HTTP::Server::Context, SocialProfile, String, AccessToken | Nil, Nil) | Nil)
Source
owners
Source
owners=(owners : AuthorizableOwner)
Source
par_store

Pushed Authorization Requests (PAR)

Source
par_store=(par_store : PARStore)

Pushed Authorization Requests (PAR)

Source
par_ttl
Source
par_ttl=(par_ttl : Time::Span)
Source
public_key
Source
public_key=(public_key : String | Nil)

The key tokens are verified with. For HMAC algorithms (the default) it has to be the signing key, so it follows secret_key until it is set to something else, such as the public half of an asymmetric pair.

Source
refresh_absolute_ttl

How long a refresh token family (the chain of tokens one sign-in yields through rotation) may be renewed in all, counted from the sign-in: no refresh token outlives it, however often it is rotated.

Source
refresh_absolute_ttl=(refresh_absolute_ttl : Time::Span)

How long a refresh token family (the chain of tokens one sign-in yields through rotation) may be renewed in all, counted from the sign-in: no refresh token outlives it, however often it is rotated.

Source
refresh_ttl
Source
refresh_ttl=(refresh_ttl : Time::Span)
Source
register_social_provider(provider : Social::Provider) : Social::Provider
Source
registration_access_token
Source
registration_access_token=(registration_access_token : String | Nil)
Source
registration_grant_types
Source
registration_grant_types=(registration_grant_types : Array(String))
Source
registration_limiter

Throttles failed authentications at the registration endpoint. A limiter of its own, so that a flood of failed registrations from many sources cannot fill the device limiter (a full limiter refuses every new key).

Source
registration_limiter=(registration_limiter : AttemptLimiter)

Throttles failed authentications at the registration endpoint. A limiter of its own, so that a flood of failed registrations from many sources cannot fill the device limiter (a full limiter refuses every new key).

Source
registration_max_body
Source
registration_max_body=(registration_max_body : Int32)
Source
registration_rate_limit

Failed authentications per source per window; requests with valid credentials are not counted.

Source
registration_rate_limit=(registration_rate_limit : Int32)

Failed authentications per source per window; requests with valid credentials are not counted.

Source
registration_rate_window
Source
registration_rate_window=(registration_rate_window : Time::Span)
Source
registration_response_types
Source
registration_response_types=(registration_response_types : Array(String))
Source
registration_scopes
Source
registration_scopes=(registration_scopes : Array(String))
Source
require_certificate_bound_tokens=(require_certificate_bound_tokens : Bool)

Certificate-Bound Tokens (mTLS)

Source
require_certificate_bound_tokens?

Certificate-Bound Tokens (mTLS)

Source
require_par=(require_par : Bool)
Source
require_par?
Source
secret_key
Source
secret_key=(secret_key : String)
Source
signing_key_id
Source
signing_key_id=(signing_key_id : String | Nil)
Source
social_http_client
Source
social_http_client=(social_http_client : Social::HttpClient)
Source
social_owner_resolver
Source
social_owner_resolver=(social_owner_resolver : Proc(SocialProfile, String | Nil) | Nil)
Source
social_providers

Social Sign-In Authentication

Source
social_providers=(social_providers : Hash(String, Social::Provider))

Social Sign-In Authentication

Source
social_state_ttl
Source
social_state_ttl=(social_state_ttl : Time::Span)
Source
state_store
Source
state_store=(state_store : StateStore)
Source
token_audience

Blank counts as unset: with neither an audience nor a base_url, tokens carry no aud.

Source
token_store
Source
token_store=(token_store : TokenStore)
Source
token_strategy
Source
token_strategy=(token_strategy : Symbol)
Source
trusted_ca_certificates
Source
trusted_ca_certificates=(trusted_ca_certificates : Array(String))
Source
userinfo
Source
userinfo=(userinfo : Proc(String, Hash(String, JSON::Any)) | Nil)
Source
verification_keys
Source
verification_keys=(verification_keys : Hash(String, String))
Source