Sha256: baf4edea37426eaaec21e6eb4c0bada942c3667f317022b251a02a61fcf9eb1a

Contents?: true

Size: 964 Bytes

Versions: 23

Compression:

Stored size: 964 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

23 entries across 23 versions & 2 rubygems

Version Path
openid_connect-2.3.1 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
oidc-0.0.1 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-2.3.0 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-2.2.1 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-2.2.0 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-2.1.0 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-2.0.0 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-2.0.0.rc1 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-1.4.2 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-1.4.1 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-1.4.0 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-1.3.1 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-1.3.0 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-1.2.0 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-1.1.8 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-1.1.7 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-1.1.6 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-1.1.5 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-1.1.4 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
openid_connect-1.1.3 lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb