Module: Simple::OAuth2::Constants

Included in:
Configuration
Defined in:
lib/simple_oauth2/configuration/constants.rb

Overview

Simple::OAuth2 default constants

Constant Summary collapse

SUPPORTED_GRANT_TYPES =

Currently supported (by the gem) OAuth2 grant types

%w(password authorization_code refresh_token client_credentials).freeze
SUPPORTED_RESPONSE_TYPES =

Default OAuth2 response types

%w(code token).freeze
DEFAULT_TOKEN_LIFETIME =

Default Access Token TTL (in seconds)

7200
DEFAULT_CODE_LIFETIME =

Default Authorization Code TTL (in seconds)

1800
DEFAULT_REALM =

Default realm value

'OAuth 2.0'.freeze
DEFAULT_CLIENT_CLASS =

Default Client class value

'Client'.freeze
DEFAULT_ACCESS_TOKEN_CLASS =

Default Access Token class value

'AccessToken'.freeze
DEFAULT_RESOURCE_OWNER_CLASS =

Default Resource Owner class value

'User'.freeze
DEFAULT_ACCESS_GRANT_CLASS =

Default Access Grant class value

'AccessGrant'.freeze
DEFAULT_ISSUE_REFRESH_TOKEN =

Default option for generate refresh token

false