class Doorkeeper::SecretStoring::Plain

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?

Plain values obviously allow restoring
#
def self.allows_restoring_secrets?
  true
end

def self.restore_secret(resource, attribute)

Parameters:
  • attribute () -- The secret attribute to restore
  • resource () -- The resource instance to act on
def self.restore_secret(resource, attribute)
  resource.public_send(attribute)
end

def self.transform_secret(plain_secret)

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