Module: Doorkeeper::AccessGrantMixin
- Extended by:
- ActiveSupport::Concern
- Includes:
- Models::Accessible, Models::Concerns::WriteToPrimary, Models::Expirable, Models::ExpirationTimeSqlMath, Models::Orderable, Models::ResourceOwnerable, Models::Revocable, Models::Scopes, Models::SecretStorable, OAuth::Helpers
- Defined in:
- lib/doorkeeper/models/access_grant_mixin.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary
Constants included from Models::ExpirationTimeSqlMath
Models::ExpirationTimeSqlMath::ADAPTERS_MAPPING, Models::ExpirationTimeSqlMath::WARNING_MESSAGE
Instance Method Summary collapse
-
#uses_pkce? ⇒ Boolean
Never uses PKCE if PKCE migrations were not generated.
Methods included from Models::Scopes
#includes_scope?, #scopes, #scopes=, #scopes_string
Methods included from Models::Accessible
Methods included from Models::Revocable
Methods included from Models::Expirable
#expired?, #expires_at, #expires_in_seconds
Instance Method Details
#uses_pkce? ⇒ Boolean
Never uses PKCE if PKCE migrations were not generated
19 20 21 |
# File 'lib/doorkeeper/models/access_grant_mixin.rb', line 19 def uses_pkce? self.class.pkce_supported? && code_challenge.present? end |