Sha256: 2d22634907b057d85f49148ee9934e325ecdd83e55cfa9623f5d253a6fc589cd

Contents?: true

Size: 905 Bytes

Versions: 54

Compression:

Stored size: 905 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
              include IdTokenResponse
              attr_required :id_token
            end
          end
        end
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
openid_connect-0.6.1 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.6.0 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.5.1 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.5.0 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.4.1 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.4.0 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.3.7 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.3.6 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.3.5 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.3.4 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.3.3 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.3.2 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.3.1 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.3.0 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.2.4 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.2.3 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.2.2 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.2.1 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.2.0 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
openid_connect-0.2.0.alpha3 lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb