Module: Riddl::Utils::OAuth2::UnivieApp
- Defined in:
- lib/ruby/riddl/utils/oauth2-univie.rb
Defined Under Namespace
Classes: RefreshToken, RevokeTokenFlow, RevokeUserFlow, VerifyIdentity
Class Method Summary collapse
Class Method Details
.implementation(client_id, client_secret, access_tokens, refresh_tokens, adur, rdur) ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/ruby/riddl/utils/oauth2-univie.rb', line 67 def self::implementation(client_id, client_secret, access_tokens, refresh_tokens, adur, rdur) Proc.new do on resource 'verify' do run VerifyIdentity, access_tokens, refresh_tokens, client_id, client_secret, adur, rdur if post 'verify_in' end on resource 'token' do run RefreshToken, access_tokens, refresh_tokens, client_id, client_secret, adur, rdur if post 'refresh_token_in' end on resource 'revoke' do run RevokeTokenFlow, access_tokens, refresh_tokens if get 'revoke_token_in' run RevokeUserFlow, access_tokens, refresh_tokens if get 'revoke_user_in' end end end |