Sha256: c73e476d293c3fb4e85617f4763c036a250645a0934cefbeb0a7937fce708104

Contents?: true

Size: 587 Bytes

Versions: 18

Compression:

Stored size: 587 Bytes

Contents

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.send :prepend, OpenidConnect::OAuth::AuthorizationCodeRequest
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
doorkeeper-openid_connect-1.7.1 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.7.0 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.6.3 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.6.2 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.6.1 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.6.0 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.5.5 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.5.4 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.5.3 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.5.2 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.5.1 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.5.0 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.4.0 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.3.0 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.2.0 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.1.2 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.1.1 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb
doorkeeper-openid_connect-1.1.0 lib/doorkeeper/openid_connect/oauth/authorization_code_request.rb