Authly
Constants
CONFIG = Configuration.new
ERROR_MSG = {
invalid_redirect_uri: "Invalid redirect uri",
invalid_state: "Invalid state",
invalid_scope: "Invalid scope value in the request",
invalid_client: "Client authentication failed, such as if the request contains an invalid client ID or secret.",
invalid_request: "The request is missing a parameter so the server can't proceed with the request",
invalid_grant: "The authorization code is invalid or expired.",
invalid_response_type: "The response type is invalid.",
owner_credentials: "Invalid owner credentials",
unauthorized_client: "This client is not authorized to use the requested grant type",
unsupported_grant_type: "Invalid or unknown grant type",
access_denied: "The user or authorization server denied the request",
unsupported_token_type: "The authorization server does not support the presented token type",
invalid_token: "The token is invalid or expired",
authorization_pending: "The authorization request is still pending; the client should retry the request",
slow_down: "The client is polling too frequently and should slow down",
expired_token: "The device code has expired; the client should request a new device authorization",
invalid_request_uri: "The request_uri is invalid, expired, or does not exist",
invalid_request_object: "The request object is invalid or malformed",
}
Class methods
access_token(grant_type, **args)
Sourceclients
Sourcecode(response_type, *args)
Sourceconfig
Sourceconfigure
Sourceintrospect(token : String)
Sourcejwt_decode(token, secret_key = config.public_key)
Sourcejwt_encode(payload)
Sourceowners
Sourcerevoke(token)
Sourcerevoked?(token)
Sourcevalid?(token)
SourceNested types
- Authly::AccessToken
- Authly::AccessTokenHandler
- Authly::AuthorizableClient
- Authly::AuthorizableOwner
- Authly::AuthorizationCode
- Authly::AuthorizationHandler
- Authly::CertificateValidator
- Authly::Client
- Authly::ClientCredentials
- Authly::ClientRegistrationHandler
- Authly::ClientStore
- Authly::Clients
- Authly::Code
- Authly::CodeChallenge
- Authly::CodeChallengeBuilder
- Authly::Configuration
- Authly::DeviceAuthorizationHandler
- Authly::DeviceCode
- Authly::DeviceCodeData
- Authly::DeviceCodeStore
- Authly::DeviceVerificationHandler
- Authly::DiscoveryHandler
- Authly::DynamicClient
- Authly::Error(Code)
- Authly::Grant
- Authly::GrantFactory
- Authly::GrantStrategy
- Authly::Handler
- Authly::InMemoryClientStore
- Authly::InMemoryDeviceCodeStore
- Authly::InMemoryPARStore
- Authly::InMemoryStateStore
- Authly::InMemoryStore
- Authly::IntrospectHandler
- Authly::JWTToken
- Authly::JWTTokenGenerator
- Authly::JarmBuilder
- Authly::OpaqueToken
- Authly::OpaqueTokenGenerator
- Authly::Owner
- Authly::Owners
- Authly::PARData
- Authly::PARHandler
- Authly::PARStore
- Authly::ParamsWrapper
- Authly::Password
- Authly::RefreshToken
- Authly::RefreshTokenHandler
- Authly::ResponseHelper
- Authly::ResponseType
- Authly::RevokeHandler
- Authly::StateStore
- Authly::TokenBinder
- Authly::TokenGenerator
- Authly::TokenGeneratorFactory
- Authly::TokenManager
- Authly::TokenStore
- Authly::TokenStrategy
- Authly::TokenStrategyFactory
- Authly::UserInfoHandler