Sha256: 8f19559c52eb98166157d93bf2a8d10788d5bc2ae6e00f8f482b9cbc5e9c9dc5

Contents?: true

Size: 598 Bytes

Versions: 5

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
          id_token = Doorkeeper::OpenidConnect::IdToken.new(access_token, nonce)
          @response.id_token = id_token
          super
        end
      end
    end
  end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
doorkeeper-openid_connect-1.7.1 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb
doorkeeper-openid_connect-1.7.0 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb
doorkeeper-openid_connect-1.6.3 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb
doorkeeper-openid_connect-1.6.2 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb
doorkeeper-openid_connect-1.6.1 lib/doorkeeper/openid_connect/oauth/password_access_token_request.rb