Sha256: cbb57b1323673107ccd22e2ecc7f4ccc9f0c289e2d010a8eb60a8bb66d5f5d3e

Contents?: true

Size: 834 Bytes

Versions: 21

Compression:

Stored size: 834 Bytes

Contents

module Rack::OAuth2::Server
  module IdTokenResponse
    def self.included(klass)
      klass.send :attr_optional, :id_token
      klass.class_eval do
        def protocol_params_location
          :fragment
        end

        def protocol_params_with_id_token
          protocol_params_without_id_token.merge(
            id_token: id_token
          )
        end
        alias_method_chain :protocol_params, :id_token
      end
    end
  end
  Token::Response.send :include, IdTokenResponse
end

require 'rack/oauth2/server/authorize/extension/code_and_id_token'
require 'rack/oauth2/server/authorize/extension/code_and_token'
require 'rack/oauth2/server/authorize/extension/code_and_id_token_and_token'
require 'rack/oauth2/server/authorize/extension/id_token'
require 'rack/oauth2/server/authorize/extension/id_token_and_token'

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
openid_connect-0.9.2 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.9.1 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.9.0 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.8.3 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.8.2 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.8.1 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.8.0 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.7.3 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.7.2 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.7.1 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.7.0 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.6.1 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.6.0 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.5.1 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.5.0 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.4.1 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.4.0 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.3.7 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.3.6 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.3.5 lib/rack/oauth2/server/id_token_response.rb