Sha256: 3f62670dc18a309cea6b9a85816cbec169e970001edde5b4dfccdb9c95496273

Contents?: true

Size: 837 Bytes

Versions: 14

Compression:

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

14 entries across 14 versions & 1 rubygems

Version Path
openid_connect-0.3.3 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.3.2 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.3.1 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.3.0 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.2.4 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.2.3 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.2.2 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.2.1 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.2.0 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.2.0.alpha3 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.2.0.alpha2 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.2.0.alpha lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.1.5 lib/rack/oauth2/server/id_token_response.rb
openid_connect-0.1.4 lib/rack/oauth2/server/id_token_response.rb