rubycas-server | Provides single sign-on authentication for web | Authentication library
kandi X-RAY | rubycas-server Summary
kandi X-RAY | rubycas-server Summary
Provides single sign-on authentication for web applications, implementing the server-end of Jasig's CAS protocol.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Logs out a controller action .
- Sends static file to serve a static file
- Serializes an extra value .
- Provides the status code for the response
- Checks if the service is allowed
- Returns true if the given service is valid .
- Creates a new Message object .
rubycas-server Key Features
rubycas-server Examples and Code Snippets
Community Discussions
Trending Discussions on rubycas-server
QUESTION
I have a Rails 5.2 app that uses Devise 4.4.1 and devise_ldap_authenticatable
for auth. I'm trying to switch that out for devise_cas_authenticatable
and now get into a redirect loop after entering my credentials on the CAS login page.
The app, the CAS server (rubycas-server
), LDAP and the database are all running as Docker containers through Docker Compose. The CAS server is configured to use HTTP for development.
From what I can tell, my app isn't setting a session when CAS returns after logging in, but I have no idea why. Even some pointers for debugging would be gratefully received.
Here is the section of the log that repeats with each redirect:
...ANSWER
Answered 2018-Mar-07 at 11:57The problem occurred when devise_ldap_authenticatable
called resource.save
. Validations run before the before_create
callback, and these validation errors were silently preventing the user from being created and thus authenticated. The uniqueness validation on the email field is why the log shows a SELECT
by email.
The solution was to change
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rubycas-server
git clone git://github.com/rubycas/rubycas-server.git
cd rubycas-server
cp config/config.example.yml config.yml
Customize your server by modifying the config.yml file. It is well commented but make sure that you take care of the following: Change the database driver to mysql2 Configure at least one authenticator You might want to change log.file to something local, so that you don't need root. For example just casserver.log You might also want to disable SSL for now by commenting out the ssl_cert line and changing the port to something like 8888
Create the database (i.e. mysqladmin -u root create casserver or whatever you have in config.yml)
Modify the existing Gemfile by adding drivers for your database server. For example, if you configured mysql2 in config.yml, add this to the Gemfile: gem "mysql2"
Run bundle install
bundle exec rubycas-server -c config.yml
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page