Sha256: f2f529595d87b03820ca200e8e52843f6e3b2201bb08020b72721f3905b804fa

Contents?: true

Size: 613 Bytes

Versions: 15

Compression:

Stored size: 613 Bytes

Contents

# frozen_string_literal: true

module Doorkeeper
  module OpenidConnect
    module OAuth
      module AuthorizationCodeRequest
        private

        def after_successful_response
          super

          nonce =
            if (openid_request = grant.openid_request)
              openid_request.destroy!
              openid_request.nonce
            end

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

  OAuth::AuthorizationCodeRequest.prepend OpenidConnect::OAuth::AuthorizationCodeRequest
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
doorkeeper-openid_connect-1.8.10 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.8.8 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.8.7 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.8.6 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.8.5 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.8.4 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.8.3 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.8.2 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.8.1 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.8.0 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.8.0.pre.rc1 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.7.5 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.7.4 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.7.3 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.7.2 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb