class

Authly::ChallengeResponse

Inherits Authly::GrantStrategy < Reference < Object

Constants

GRANT_TYPES = {"challenge_response", "urn:ietf:params:oauth:grant-type:challenge"}

Constructors

new(client_id : String, challenge_id : String, response : String, client_secret : String = "", scope : String = "", key_id : String | Nil = nil, algorithm : String | Nil = nil, grant_type : String = "challenge_response")
Source

Class methods

create_challenge(client_id : String, username : String | Nil = nil, owner_id : String | Nil = nil, key_id : String | Nil = nil, ttl : Time::Span = Authly.config.challenge_ttl) : Challenge
Source

Instance methods

authorized?
Source
challenge_id
Source
client_id
Source
client_secret
Source
granted_scope

The scope the strategy resolved itself (the refresh token grant); nil when the grant does not know it and Grant reads it from the authorization code.

Source
response
Source
subject

Who the issued token is about, when the grant identifies someone it can trust: the client for the client credentials grant, the resource owner for grants that authenticated one. Nil leaves the token with an anonymous subject.

Source