3 navsection: installguide
4 title: Install Single Sign On (SSO) server
7 {% include 'skip_sso_server_install' %}
9 h2(#dependencies). Install dependencies
11 Make sure you have "Ruby and bundler":install-manual-prerequisites-ruby.html installed.
13 h2(#install). Install SSO server
16 <pre><code>~$ <span class="userinput">cd $HOME</span> # (or wherever you want to install)
17 ~$ <span class="userinput">git clone https://github.com/curoverse/sso-devise-omniauth-provider.git</span>
18 ~$ <span class="userinput">cd sso-devise-omniauth-provider</span>
19 ~/sso-devise-omniauth-provider$ <span class="userinput">bundle install</span>
20 ~/sso-devise-omniauth-provider$ <span class="userinput">rake db:create</span>
21 ~/sso-devise-omniauth-provider$ <span class="userinput">rake db:migrate</span>
22 ~/sso-devise-omniauth-provider$ <span class="userinput">rake secret</span>
23 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
24 ~/sso-devise-omniauth-provider$ <span class="userinput">rails console</span>
25 irb(main):001:0> <span class="userinput">c = Client.new</span>
26 irb(main):002:0> <span class="userinput">c.name = "joshid"</span>
27 irb(main):003:0> <span class="userinput">c.app_id = "arvados-server"</span>
28 irb(main):004:0> <span class="userinput">c.app_secret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"</span>
29 irb(main):005:0> <span class="userinput">c.save!</span>
30 irb(main):006:0> <span class="userinput">quit</span>
31 ~/sso-devise-omniauth-provider$ <span class="userinput">rails server --port=3002</span>