Sha256: a3fd5ae179ba95ba20c570a7707175ccc87acc27edea9f40d330f67490793409
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
module Doorkeeper module OAuth class CodeResponse include OAuth::Authorization::URIBuilder include OAuth::Helpers attr_accessor :pre_auth, :auth, :response_on_fragment def initialize(pre_auth, auth, options = {}) @pre_auth, @auth = pre_auth, auth @response_on_fragment = options[:response_on_fragment] end def redirectable? true end def redirect_uri if URIChecker.native_uri? pre_auth.redirect_uri auth.native_redirect else if response_on_fragment uri_with_fragment( pre_auth.redirect_uri, access_token: auth.token.token, token_type: auth.token.token_type, expires_in: auth.token.expires_in_seconds, state: pre_auth.state ) else uri_with_query pre_auth.redirect_uri, code: auth.token.token, state: pre_auth.state end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-4.0.0.rc3 | lib/doorkeeper/oauth/code_response.rb |
doorkeeper-4.0.0.rc2 | lib/doorkeeper/oauth/code_response.rb |
doorkeeper-4.0.0.rc1 | lib/doorkeeper/oauth/code_response.rb |