1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

[sso] display strategy name in providers list

This commit is contained in:
Sylvain 2016-09-13 12:06:25 +02:00
parent 6b46c175ca
commit ec0f597067
5 changed files with 13 additions and 3 deletions

View File

@ -14,6 +14,8 @@
<tr>
<th style="width:15%" translate>{{ 'name' }}</th>
<th style="width:15%" translate>{{ 'strategy_name' }}</th>
<th style="width:15%" translate>{{ 'type' }}</th>
<th style="width:15%" translate>{{ 'state' }}</th>
@ -24,6 +26,7 @@
<tbody>
<tr ng-repeat="provider in providers | filter:searchFilter">
<td>{{ provider.name }}</td>
<td>{{ provider.strategy_name }}</td>
<td>{{ getType(provider.providable_type) }}</td>
<td>{{ getState(provider.status) }}</td>
<td>

View File

@ -1 +1 @@
json.extract! auth_provider, :id, :name, :status, :providable_type
json.extract! auth_provider, :id, :name, :status, :providable_type, :strategy_name

View File

@ -354,6 +354,7 @@ en:
an_error_occurred_and_the_tag_deletion_failed: "An error occurred and the tag deletion failed."
search_for_an_authentication_provider: "Search for an authentication provider"
add_a_new_authentication_provider: "Add a new authentication provider"
strategy_name: "Strategy's name"
state: "State"
unknown: "Unknown: "
active: "Active"

View File

@ -354,6 +354,7 @@ fr:
an_error_occurred_and_the_tag_deletion_failed: "Une erreur est survenue et l'étiquette n'a pas pu être supprimé."
search_for_an_authentication_provider: "Recherchez un fournisseur d'authentification"
add_a_new_authentication_provider: "Ajouter un nouveau fournisseur d'authentification"
strategy_name: "Nom de la stratégie"
state: "État"
unknown: "Inconnu : "
active: "Actif"

View File

@ -1,6 +1,6 @@
# How to configure Fab-manager to use a Single Sign-On authentication?
For this guide, we will use [GitHub](https://developer.github.com/v3/oauth/) as an authentication provider, because it has a standard implementation of the protocol and it is free to use.
For this guide, we will use [GitHub](https://developer.github.com/v3/oauth/) as an example authentication provider, because uses OAuth 2.0 which is currently implemented in fab-manager, it has a standard implementation of that protocol and it is free to use for everyone.
- First, you must have a GitHub account. This is free, so create one if you don't have any.
Visit https://github.com/join?source=login to create an account.
@ -9,7 +9,11 @@ For this guide, we will use [GitHub](https://developer.github.com/v3/oauth/) as
Visit https://github.com/settings/applications/new to register your instance.
- In `Application name`, we advise you to set the same name as your fab-manager's instance title.
- In `Homepage URL`, put the public URL where your fab-manager's instance is located (eg. https://example.com).
- In `Authorization callback URL`, you must specify an URL that will match this scheme: https://example.com/users/auth/oauth2-github/callback (replace example.com with your own fab-manager's address).
- In `Authorization callback URL`, you must specify an URL that will match this scheme: https://example.com/users/auth/oauth2-github/callback
- **example.com** is your own fab-manager's address
- **oauth2-github** match the provider's "strategy name" in the fab-manager.
It is composed of: **SSO's protocol**, _dash_, **slug of the provider's name**.
If you have a doubt about what it will be, start by creating the authentication provider in your fab-manager (see below), then the strategy's name will be shown in the providers list.
- You'll be redirected to a page displaying two important informations: your **Client ID** and your **Client Secret**.
@ -18,6 +22,7 @@ For this guide, we will use [GitHub](https://developer.github.com/v3/oauth/) as
In `name`, you can set whatever you want, but you must be aware that:
1. You will need to type this name in a terminal to activate the provider, so prefer avoiding chars that must be escaped.
2. This name will be occasionally displayed to end users, so prefer sweet and speaking names.
3. The slug of this name is used in the callback URL provided to the SSO server (eg. /users/auth/oauth2-**github**/callback)
- Fulfill the form with the following parameters:
- **Common URL**: `https://github.com/login/oauth/` This is the common part in the URLs of the two following parameters.