module Doorkeeper::OpenidConnect::OAuth::PreAuthorization
Attributes
Public Class Methods
Source
# File lib/doorkeeper/openid_connect/oauth/pre_authorization.rb, line 9 def initialize(server, attrs = {}, resource_owner = nil) super @nonce = attrs[:nonce] end
Calls superclass method
Public Instance Methods
Source
# File lib/doorkeeper/openid_connect/oauth/pre_authorization.rb, line 16 def response_on_fragment? return response_mode == 'fragment' if response_mode.present? grant_flow = server.authorization_response_flows.detect do |flow| flow.matches_response_type?(response_type) end grant_flow&.default_response_mode == 'fragment' end
NOTE: Auto get default response_mode of specified response_type if response_mode is not
yet present. We can delete this method after Doorkeeper's minimize version support it.