Sha256: fb8c1c76d460e00ce5e0f28428c72f79e694b3732ed1a5046dcb4e0d0f28197b

Contents?: true

Size: 937 Bytes

Versions: 23

Compression:

Stored size: 937 Bytes

Contents

module Rack
  module OAuth2
    module Server
      class Authorize
        module Extension
          class IdToken < Abstract::Handler
            class << self
              def response_type_for?(response_type)
                response_type == 'id_token'
              end
            end

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

            class Request < Authorize::Request
              def initialize(env)
                super
                @response_type = :id_token
                attr_missing!
              end

              def error_params_location
                :fragment
              end
            end

            class Response < Authorize::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/id_token.rb
oidc-0.0.1 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-2.3.0 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-2.2.1 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-2.2.0 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-2.1.0 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-2.0.0 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-2.0.0.rc1 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-1.4.2 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-1.4.1 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-1.4.0 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-1.3.1 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-1.3.0 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-1.2.0 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-1.1.8 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-1.1.7 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-1.1.6 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-1.1.5 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-1.1.4 lib/rack/oauth2/server/authorize/extension/id_token.rb
openid_connect-1.1.3 lib/rack/oauth2/server/authorize/extension/id_token.rb