Sha256: dab5af699ad0e1b4d81df9585c392e002ce31afbfa1ac67f6a5de28f472ff889
Contents?: true
Size: 977 Bytes
Versions: 6
Compression:
Stored size: 977 Bytes
Contents
module Rack module OAuth2 module Server class Authorize module Extension class IdTokenAndToken < Abstract::Handler class << self def response_type_for?(response_type) response_type.split.sort == ['id_token', 'token'] end end def call(env) @request = Request.new env @response = Response.new request super end class Request < Authorize::Token::Request def initialize(env) super @response_type = [:id_token, :token] attr_missing! end end class Response < Authorize::Token::Response attr_required :id_token def protocol_params super.merge :id_token => id_token.to_jwt end end end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems