Sha256: 3c8fbe81fe5fc985b554a01ebc60d55613d0642d70e94e10303c786978fee02a

Contents?: true

Size: 613 Bytes

Versions: 6

Compression:

Stored size: 613 Bytes

Contents

module Doorkeeper
  module OAuth
    class IdTokenResponse < BaseResponse
      include OAuth::Helpers

      attr_accessor :pre_auth, :auth, :id_token

      def initialize(pre_auth, auth, id_token)
        @pre_auth = pre_auth
        @auth = auth
        @id_token = id_token
      end

      def redirectable?
        true
      end

      def redirect_uri
        Authorization::URIBuilder.uri_with_fragment(
          pre_auth.redirect_uri,
          expires_in: auth.token.expires_in_seconds,
          state: pre_auth.state,
          id_token: id_token.as_jws_token
        )
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
doorkeeper-openid_connect-1.5.3 lib/doorkeeper/oauth/id_token_response.rb
doorkeeper-openid_connect-1.5.2 lib/doorkeeper/oauth/id_token_response.rb
doorkeeper-openid_connect-1.5.1 lib/doorkeeper/oauth/id_token_response.rb
doorkeeper-openid_connect-1.5.0 lib/doorkeeper/oauth/id_token_response.rb
doorkeeper-openid_connect-1.4.0 lib/doorkeeper/oauth/id_token_response.rb
doorkeeper-openid_connect-1.3.0 lib/doorkeeper/oauth/id_token_response.rb