Module: Doorkeeper::AccessGrantMixin

Extended by:
ActiveSupport::Concern
Includes:
Models::Accessible, Models::Expirable, 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

Instance Method Summary collapse

Methods included from Models::Scopes

#includes_scope?, #scopes, #scopes=, #scopes_string

Methods included from Models::Accessible

#accessible?

Methods included from Models::Revocable

#revoke, #revoked?

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

Returns:

  • (Boolean)


17
18
19
# File 'lib/doorkeeper/models/access_grant_mixin.rb', line 17

def uses_pkce?
  self.class.pkce_supported? && code_challenge.present?
end