Class: OmniAuth::Strategies::SSO
- Inherits:
-
Object
- Object
- OmniAuth::Strategies::SSO
- Includes:
- OmniAuth::Strategy
- Defined in:
- lib/omniauth/strategies/sso.rb
Constant Summary collapse
- SSO_URL =
'neststaging.riseup.net/sso_auth'
Instance Method Summary collapse
- #authorize_url(_params_from_options) ⇒ Object
- #client ⇒ Object
- #info_from_ticket ⇒ Object
- #name ⇒ Object
- #request_phase ⇒ Object
- #service_param ⇒ Object
Instance Method Details
#authorize_url(_params_from_options) ⇒ Object
28 29 30 |
# File 'lib/omniauth/strategies/sso.rb', line 28 def () "https://#{SSO_URL}/?s=#{service_param}" end |
#client ⇒ Object
44 45 46 |
# File 'lib/omniauth/strategies/sso.rb', line 44 def client RbSSO::Client.new .service_id, .client_key end |
#info_from_ticket ⇒ Object
40 41 42 |
# File 'lib/omniauth/strategies/sso.rb', line 40 def info_from_ticket @info_from_ticket ||= client.open request["t"] end |
#name ⇒ Object
36 37 38 |
# File 'lib/omniauth/strategies/sso.rb', line 36 def name 'sso' end |
#request_phase ⇒ Object
16 17 18 |
# File 'lib/omniauth/strategies/sso.rb', line 16 def request_phase redirect (.) end |
#service_param ⇒ Object
32 33 34 |
# File 'lib/omniauth/strategies/sso.rb', line 32 def service_param CGI.escape .service_id end |