Sha256: 329af17e56e82c83ca40e7faa4171632189a58dd7b3b48558f98023ac62c2cc7

Contents?: true

Size: 963 Bytes

Versions: 44

Compression:

Stored size: 963 Bytes

Contents

module Rack
  module OAuth2
    module Server
      class Authorize
        module Extension
          class CodeAndIdTokenAndToken < Abstract::Handler
            class << self
              def response_type_for?(response_type)
                response_type.split.sort == ['code', 'id_token', 'token']
              end
            end

            def call(env)
              @request  = Request.new env
              @response = Response.new request
              super
            end

            class Request < Authorize::Extension::CodeAndToken::Request
              def initialize(env)
                super
                @response_type = [:code, :id_token, :token]
                attr_missing!
              end
            end

            class Response < Authorize::Extension::CodeAndToken::Response
              include IdTokenResponse
              attr_required :id_token
            end
          end
        end
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
openid_connect-1.0.3 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-1.0.2 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-1.0.1 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-1.0.0 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-0.12.0 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-0.11.2 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-0.11.1 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-0.11.0 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-0.10.0 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-0.9.2 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-0.9.1 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-0.9.0 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-0.8.3 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-0.8.2 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-0.8.1 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-0.8.0 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-0.7.3 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-0.7.2 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-0.7.1 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-0.7.0 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb