Module: Rack::OAuth2::Server::IdTokenResponse

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.prepended(klass) ⇒ Object



3
4
5
# File 'lib/rack/oauth2/server/id_token_response.rb', line 3

def self.prepended(klass)
  klass.send :attr_optional, :id_token
end

Instance Method Details

#protocol_paramsObject



11
12
13
14
15
# File 'lib/rack/oauth2/server/id_token_response.rb', line 11

def protocol_params
  super.merge(
    id_token: id_token
  )
end

#protocol_params_locationObject



7
8
9
# File 'lib/rack/oauth2/server/id_token_response.rb', line 7

def protocol_params_location
  :fragment
end