Class: RackCAS::Server
- Inherits:
-
Object
- Object
- RackCAS::Server
- Defined in:
- lib/rack-cas/server.rb
Instance Method Summary collapse
-
#initialize(url) ⇒ Server
constructor
A new instance of Server.
- #login_url(service_url) ⇒ Object
- #logout_url ⇒ Object
- #validate_service(service_url, ticket) ⇒ Object
Constructor Details
Instance Method Details
#login_url(service_url) ⇒ Object
10 11 12 |
# File 'lib/rack-cas/server.rb', line 10 def login_url(service_url) @url.dup.append_path('login').add_params(service: service_url) end |
#logout_url ⇒ Object
14 15 16 |
# File 'lib/rack-cas/server.rb', line 14 def logout_url @url.dup.append_path('logout') end |
#validate_service(service_url, ticket) ⇒ Object
18 19 20 21 |
# File 'lib/rack-cas/server.rb', line 18 def validate_service(service_url, ticket) response = ServiceValidationResponse.new validate_service_url(service_url, ticket) [response.user, response.extra_attributes] end |