Rais enables single-point login SSO

Source: Internet
Author: User

1. Install RubyCAS. Before installation, make sure that your machine has ruby 1.8.4 or an updated version. In shell, enter: gem install rubycas-server

2. After the installation is successful, see the following Directory D:/Ruby/lib/ruby/gems/1.8/gems/rubycas-server-0.6.0, the installation is successful

3. Run D:/Ruby/lib/ruby/gems/1.8/gems/rubycas-server-0.6.0/bin/rubycas-server in cmd to start the cas server;

4. when you run the cas server for the first time, the report "/etc/rubycas-server/config. yml "error, because when starting the cas server, will go to D:/Ruby/lib/ruby/gems/1.8/gems/rubycas-server-0.6.0/lib/casserver. read $ CONFIG_FILE in rb | = '/etc/rubycas-server/config. yml' file to obtain some configuration information, such as the rails web server, port, database connection, and eye political policy. because we do not have/etc/rubycas-server/config. yml path, so an error will be reported when this file is loaded;

5. to Solve Problem 4, there is an example configuration file config in D:/Ruby/lib/ruby/gems/1.8/gems/rubycas-server-0.6.0. example. yml, we can copy a config in this path. example. yml, and rename it your favorite file name, such as config. yml, then modify $ CONFIG_FILE in D:/Ruby/lib/ruby/gems/1.8/gems/rubycas-server-0.6.0/bin/rubycas-server | = D: /Ruby/lib/ruby/gems/1.8/gems/rubycas-server-0.6.0/config. yml

6. Run rubycas-server again. Your cas server will start normally;

7. Verify that http: // localhost: 443 is normal;

 

Error handling:

Cocould not find RubyGem hoe (> = 1.7.0) (Gem: LoadError ).

This error is because you have not installed hoe. You can go to baidu to find out how to install this gem package.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.