Class: Riddl::Utils::OAuth2::UnivieApp::RevokeFlow

Inherits:
Implementation show all
Defined in:
lib/ruby/riddl/utils/oauth2-univie.rb

Instance Method Summary collapse

Methods inherited from Implementation

#headers, #initialize, #status

Constructor Details

This class inherits a constructor from Riddl::Implementation

Instance Method Details

#responseObject



113
114
115
116
117
118
119
120
121
122
# File 'lib/ruby/riddl/utils/oauth2-univie.rb', line 113

def response
  code           = Base64::urlsafe_decode64 @p[0].value
  access_tokens  = @a[0]
  refresh_tokens = @a[1]
  codes          = @a[2]

  rt = codes.delete(code)
  at = refresh_tokens.delete(rt)
  access_tokens.delete(at)
end