struct

Authly::DynamicClient

Inherits JSON::Serializable / Struct / Value / Object

Represents a dynamically registered OAuth2 client per RFC 7591

Constructors

from_registration_request(params : Hash(String, JSON::Any)) : DynamicClient

Create from registration request

Source
new(client_id : String, client_secret : String | Nil, redirect_uris : Array(String), grant_types : Array(String) = ["authorization_code"], response_types : Array(String) = ["code"], token_endpoint_auth_method : String | Nil = "client_secret_basic", client_name : String | Nil = nil, client_uri : String | Nil = nil, logo_uri : String | Nil = nil, scope : String | Nil = nil, contacts : Array(String) | Nil = nil, tos_uri : String | Nil = nil, policy_uri : String | Nil = nil, jwks_uri : String | Nil = nil, software_id : String | Nil = nil, software_version : String | Nil = nil, authorization_signed_response_alg : String | Nil = nil, authorization_encrypted_response_alg : String | Nil = nil, authorization_encrypted_response_enc : String | Nil = nil, jwks : String | Nil = nil, client_id_issued_at : Int64 = Time.utc.to_unix, client_secret_expires_at : Int64 | Nil = nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

authorization_encrypted_response_alg
Source
authorization_encrypted_response_enc
Source
authorization_signed_response_alg

JARM (JWT Secured Authorization Response Mode) settings

Source
client_id

Required fields

Source
client_id_issued_at

Registration metadata

Source
client_name

Optional metadata fields

Source
client_secret
Source
client_secret_expires_at
Source
client_uri
Source
contacts
Source
grant_types
Source
jwks
Source
jwks_uri
Source
logo_uri
Source
policy_uri
Source
redirect_uris
Source
response_types
Source
scope
Source
software_id
Source
software_version
Source
token_endpoint_auth_method
Source
tos_uri
Source
valid?

Validate the client metadata

Source