debian-mirror-gitlab/doc/administration/auth/authentiq.md

95 lines
3.6 KiB
Markdown
Raw Normal View History

2019-09-30 21:07:59 +05:30
---
type: reference
2020-06-23 00:09:42 +05:30
stage: Manage
2022-04-04 11:22:00 +05:30
group: Authentication and Authorization
2021-02-22 17:27:13 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2019-09-30 21:07:59 +05:30
---
2021-06-08 01:23:25 +05:30
# Authentiq OmniAuth Provider **(FREE SELF)**
2017-08-17 22:00:37 +05:30
To enable the Authentiq OmniAuth provider for passwordless authentication you must register an application with Authentiq.
2021-09-30 23:02:18 +05:30
Authentiq generates a Client ID and the accompanying Client Secret for you to use.
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
1. Get your Client credentials (Client ID and Client Secret) at [Authentiq](https://www.authentiq.com/developers).
2017-08-17 22:00:37 +05:30
2019-02-15 15:39:39 +05:30
1. On your GitLab server, open the configuration file:
2017-08-17 22:00:37 +05:30
2019-09-30 21:07:59 +05:30
For omnibus installation
2020-03-13 15:44:24 +05:30
```shell
2019-09-30 21:07:59 +05:30
sudo editor /etc/gitlab/gitlab.rb
```
2017-08-17 22:00:37 +05:30
2019-09-30 21:07:59 +05:30
For installations from source:
2017-08-17 22:00:37 +05:30
2020-03-13 15:44:24 +05:30
```shell
2019-09-30 21:07:59 +05:30
sudo -u git -H editor /home/git/gitlab/config/gitlab.yml
```
2017-08-17 22:00:37 +05:30
2021-12-11 22:18:48 +05:30
1. See [Configure initial settings](../../integration/omniauth.md#configure-initial-settings) for initial settings to enable single sign-on and add Authentiq as an OAuth provider.
2019-02-15 15:39:39 +05:30
1. Add the provider configuration for Authentiq:
2019-09-30 21:07:59 +05:30
For Omnibus packages:
```ruby
gitlab_rails['omniauth_providers'] = [
{
2022-01-26 12:08:38 +05:30
name: "authentiq",
# label: "Provider name", # optional label for login button, defaults to "Authentiq"
app_id: "YOUR_CLIENT_ID",
app_secret: "YOUR_CLIENT_SECRET",
args: {
"scope": 'aq:name email~rs address aq:push'
}
2019-09-30 21:07:59 +05:30
}
]
```
For installations from source:
```yaml
- { name: 'authentiq',
2022-01-26 12:08:38 +05:30
# label: 'Provider name', # optional label for login button, defaults to "Authentiq"
2019-09-30 21:07:59 +05:30
app_id: 'YOUR_CLIENT_ID',
app_secret: 'YOUR_CLIENT_SECRET',
args: {
scope: 'aq:name email~rs address aq:push'
}
}
```
2019-02-15 15:39:39 +05:30
1. The `scope` is set to request the user's name, email (required and signed), and permission to send push notifications to sign in on subsequent visits.
2019-07-07 11:18:12 +05:30
See [OmniAuth Authentiq strategy](https://github.com/AuthentiqID/omniauth-authentiq/wiki/Scopes,-callback-url-configuration-and-responses) for more information on scopes and modifiers.
2017-08-17 22:00:37 +05:30
2019-02-15 15:39:39 +05:30
1. Change `YOUR_CLIENT_ID` and `YOUR_CLIENT_SECRET` to the Client credentials you received in step 1.
2017-08-17 22:00:37 +05:30
2019-02-15 15:39:39 +05:30
1. Save the configuration file.
2017-08-17 22:00:37 +05:30
2019-02-15 15:39:39 +05:30
1. [Reconfigure](../restart_gitlab.md#omnibus-gitlab-reconfigure) or [restart GitLab](../restart_gitlab.md#installations-from-source) for the changes to take effect if you installed GitLab via Omnibus or from source respectively.
2017-08-17 22:00:37 +05:30
2021-09-30 23:02:18 +05:30
On the sign in page there should now be an Authentiq icon below the regular sign in form. Click the
icon to begin the authentication process. If the user:
2017-08-17 22:00:37 +05:30
2021-09-30 23:02:18 +05:30
- Has the Authentiq ID app installed in their iOS or Android device, they can:
2020-04-08 14:13:33 +05:30
1. Scan the QR code.
1. Decide what personal details to share.
1. Sign in to your GitLab installation.
2021-09-30 23:02:18 +05:30
- Does not have the app installed, they are prompted to download the app and then follow the
procedure above.
2017-08-17 22:00:37 +05:30
2021-09-30 23:02:18 +05:30
If everything works, the user is returned to GitLab and is signed in.
2019-09-30 21:07:59 +05:30
<!-- ## Troubleshooting
Include any troubleshooting steps that you can foresee. If you know beforehand what issues
one might have when setting this up, or when something is changed, or on upgrading, it's
important to describe those, too. Think of things that may go wrong and include them here.
This is important to minimize requests for support, and to avoid doc comments with
questions that you know someone might ask.
Each scenario can be a third-level heading, e.g. `### Getting error message X`.
If you have none to add when creating a doc, leave this section in place
but commented out to help encourage others to add to it in the future. -->