Sha256: eb86f19cbd8557e6428d7b38de5a9c2a084ab4dd905de3bc79164f592a76c518

Contents?: true

Size: 725 Bytes

Versions: 9

Compression:

Stored size: 725 Bytes

Contents

module Rack
  module OAuth2
    module Server
      class Token
        class Assertion < Abstract::Handler

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

          class Request < Token::Request
            attr_accessor :assertion_type, :assertion

            def initialize(env)
              super
              @grant_type     = 'assertion'
              @assertion_type = params['assertion_type']
              @assertion      = params['assertion']
            end

            def required_params
              super + [:assertion_type, :assertion]
            end
          end

        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rack-oauth2-0.2.2.1 lib/rack/oauth2/server/token/assertion.rb
rack-oauth2-0.2.2 lib/rack/oauth2/server/token/assertion.rb
rack-oauth2-0.2.1 lib/rack/oauth2/server/token/assertion.rb
rack-oauth2-0.2.0 lib/rack/oauth2/server/token/assertion.rb
rack-oauth2-0.1.0 lib/rack/oauth2/server/token/assertion.rb
rack-oauth2-0.0.9 lib/rack/oauth2/server/token/assertion.rb
rack-oauth2-0.0.8 lib/rack/oauth2/server/token/assertion.rb
rack-oauth2-0.0.7 lib/rack/oauth2/server/token/assertion.rb
rack-oauth2-0.0.6 lib/rack/oauth2/server/token/assertion.rb