Sha256: abe44a510bb6a4ad1fbd00159386e5675a836d145aa300e40d354efdf66c7ae3
Contents?: true
Size: 799 Bytes
Versions: 31
Compression:
Stored size: 799 Bytes
Contents
# frozen_string_literal: true class OauthController < ApplicationController # TODO # Routes for this controller are not provided by the gem and # should be set according to your needs def request_omniauth return redirect_to root_url unless is_admin # TODO # Perform oauth request here. The oauth process should be able to # remember the organization, either by a param in the request or using # a session end def create_omniauth return redirect_to root_url unless is_admin # TODO # Update current_organization with oauth params # Should at least set oauth_uid, oauth_token and oauth_provider end def destroy_omniauth return redirect_to root_url unless is_admin current_organization.clear_omniauth redirect_to root_url end end
Version data entries
31 entries across 31 versions & 1 rubygems