Module: Doorkeeper::AccessGrantMixin

Defined Under Namespace

Modules: ClassMethods

Constant Summary

Constants included from Models::ExpirationTimeSqlMath

Models::ExpirationTimeSqlMath::ADAPTERS_MAPPING, Models::ExpirationTimeSqlMath::WARNING_MESSAGE

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)


19
20
21
# File 'lib/doorkeeper/models/access_grant_mixin.rb', line 19

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