Sha256: 771a67788521516e389d4917ad91ee6d3eaab4a2e65e5d2d67aa94c581e495e6
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
OpenStax::Accounts::Engine.routes.draw do # Redirect here if we don't know what to do (theoretically should not happen) root :to => 'sessions#new' # Shortcut to OmniAuth route that redirects to the Accounts server # This is provided by OmniAuth and is not in the SessionsController get '/auth/openstax', :as => 'openstax_login' # OmniAuth local routes (SessionsController) scope module: 'sessions' do get 'callback', :path => 'auth/:provider/callback' # Authentication success get 'failure', :path => 'auth/failure' # Authentication failure get 'login', :to => :new # Redirects to /auth/openstax or stub match 'logout', :to => :destroy, # Redirects to logout path or stub :via => OpenStax::Accounts.configuration.logout_via end if OpenStax::Accounts.configuration.enable_stubbing? namespace :dev do resources :accounts, :only => [:index, :create] do post 'become', :on => :member get 'search', :on => :collection end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openstax_accounts-3.1.0 | config/routes.rb |