-
Notifications
You must be signed in to change notification settings - Fork 2
On premise installations config
Alexander Keramidas edited this page Feb 17, 2017
·
5 revisions
When working on an 'on premise' installation of Authentiq (e.g. for a local authentication service), you will need to override the gem's client_options by adding the full urls for site
, token
and authorize
params in the Omniauth initializer.
For example
config.omniauth :authentiq, ENV["AUTHENTIQ_APP_ID"], ENV["AUTHENTIQ_APP_SECRET"], {
scope: 'aq:name email~rs address phone aq:push',
remote_sign_out_handler: (
lambda do |request|
if Rails.cache.read("application_name:#{:authentiq}:#{request.params['sid']}").present?
Rails.cache.delete("application_name:#{:authentiq}:#{request.params['sid']}")
true
else
false
end
end
),
client_options: {
:site => 'Authentiq absolute url, eg https://authentiq.mydomain/path/',
:authorize_url => 'Authorize absolute url, eg https://authentiq.mydomain/path/authorize',
:token_url => 'Token absolute url, eg https://authentiq.mydomain/path/token'
}
}
Official Authentiq OmniAuth strategy wiki