Class: Doorkeeper::ClientAuthentication::VerifiedCredentials

Inherits:
Credentials
  • Object
show all
Defined in:
lib/doorkeeper/client_authentication/verified_credentials.rb

Overview

Credentials for a client that was already fully authenticated by its authentication method (e.g. a verified private_key_jwt assertion), so the client lookup must not run a secret comparison — there is no secret, and the proof of identity has already been checked.

Instance Attribute Summary

Attributes inherited from Credentials

#secret, #uid

Instance Method Summary collapse

Constructor Details

#initialize(uid) ⇒ VerifiedCredentials

Returns a new instance of VerifiedCredentials.



10
11
12
# File 'lib/doorkeeper/client_authentication/verified_credentials.rb', line 10

def initialize(uid)
  super(uid, nil)
end

Instance Method Details

#pre_authenticated?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/doorkeeper/client_authentication/verified_credentials.rb', line 14

def pre_authenticated?
  true
end