class Doorkeeper::SecretStoring::Sha256Hash

other secret storing mechanisms are enabled.
but also provides fallback lookup if
Plain text secret storing, which is the default
#

def self.allows_restoring_secrets?

trying to use a non-restorable strategy with +reuse_access_tokens+.
secrets from the database. This allows detecting users
Determines whether this strategy supports restoring
#
def self.allows_restoring_secrets?
  false
end

def self.transform_secret(plain_secret)

Parameters:
  • plain_secret () -- The plain secret input / generated
def self.transform_secret(plain_secret)
  ::Digest::SHA256.hexdigest plain_secret
end