Sha256: e0abc3cadab117e8f1b6833a689f08d1504fb09c81c5e9f4dcbe16bd856645cd

Contents?: true

Size: 598 Bytes

Versions: 13

Compression:

Stored size: 598 Bytes

Contents

module Doorkeeper
  module OpenidConnect
    module OAuth
      module PasswordAccessTokenRequest
        attr_reader :nonce

        def initialize(server, client, resource_owner, parameters = {})
          super
          @nonce = parameters[:nonce]
        end

        private

        def after_successful_response
          super
          id_token = Doorkeeper::OpenidConnect::IdToken.new(access_token, nonce)
          @response.id_token = id_token
        end
      end
    end
  end

  OAuth::PasswordAccessTokenRequest.send :prepend, OpenidConnect::OAuth::PasswordAccessTokenRequest
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
doorkeeper-openid_connect-1.6.0 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb
doorkeeper-openid_connect-1.5.5 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb
doorkeeper-openid_connect-1.5.4 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb
doorkeeper-openid_connect-1.5.3 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb
doorkeeper-openid_connect-1.5.2 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb
doorkeeper-openid_connect-1.5.1 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb
doorkeeper-openid_connect-1.5.0 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb
doorkeeper-openid_connect-1.4.0 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb
doorkeeper-openid_connect-1.3.0 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb
doorkeeper-openid_connect-1.2.0 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb
doorkeeper-openid_connect-1.1.2 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb
doorkeeper-openid_connect-1.1.1 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb
doorkeeper-openid_connect-1.1.0 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb