Module: Doorkeeper::OpenidConnect::OAuth::PreAuthorization
- Defined in:
- lib/doorkeeper/openid_connect/oauth/pre_authorization.rb
Instance Attribute Summary collapse
-
#nonce ⇒ Object
readonly
Returns the value of attribute nonce.
Instance Method Summary collapse
-
#error_response ⇒ Object
This method will be updated when doorkeeper move to version > 5.2.2 TODO: delete this method and refactor response_on_fragment? method (below) when doorkeeper gem version constrains is > 5.2.2.
- #initialize(server, attrs = {}) ⇒ Object
Instance Attribute Details
#nonce ⇒ Object (readonly)
Returns the value of attribute nonce.
5 6 7 |
# File 'lib/doorkeeper/openid_connect/oauth/pre_authorization.rb', line 5 def nonce @nonce end |
Instance Method Details
#error_response ⇒ Object
This method will be updated when doorkeeper move to version > 5.2.2 TODO: delete this method and refactor response_on_fragment? method (below) when doorkeeper gem version constrains is > 5.2.2
14 15 16 17 18 19 20 |
# File 'lib/doorkeeper/openid_connect/oauth/pre_authorization.rb', line 14 def error_response if error == :invalid_request Doorkeeper::OAuth::InvalidRequestResponse.from_request(self, response_on_fragment: response_on_fragment?) else Doorkeeper::OAuth::ErrorResponse.from_request(self, response_on_fragment: response_on_fragment?) end end |
#initialize(server, attrs = {}) ⇒ Object
7 8 9 10 |
# File 'lib/doorkeeper/openid_connect/oauth/pre_authorization.rb', line 7 def initialize(server, attrs = {}) super @nonce = attrs[:nonce] end |