Class: Api::OpenidConnect::TokenEndpointController

Inherits:
ApplicationController show all
Defined in:
app/controllers/api/openid_connect/token_endpoint_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject


8
9
10
11
12
13
14
15
16
# File 'app/controllers/api/openid_connect/token_endpoint_controller.rb', line 8

def create
  req = Rack::Request.new(request.env)
  if req["client_assertion_type"] == "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
    handle_jwt_bearer(req)
  end
  self.status, headers, self.response_body = Api::OpenidConnect::TokenEndpoint.new.call(request.env)
  headers.each {|name, value| response.headers[name] = value }
  nil
end