Commit a1d981f1 authored by Eirik Lygre's avatar Eirik Lygre Committed by Rémy Coutable

Add a label to the Azure OAuth integration example

Changelog: other
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 7174cbff
...@@ -59,6 +59,7 @@ As you go through the Microsoft procedure, keep the following in mind: ...@@ -59,6 +59,7 @@ As you go through the Microsoft procedure, keep the following in mind:
gitlab_rails['omniauth_providers'] = [ gitlab_rails['omniauth_providers'] = [
{ {
"name" => "azure_oauth2", "name" => "azure_oauth2",
# "label" => "Provider name", # optional label for login button, defaults to "Azure AD"
"args" => { "args" => {
"client_id" => "CLIENT ID", "client_id" => "CLIENT ID",
"client_secret" => "CLIENT SECRET", "client_secret" => "CLIENT SECRET",
...@@ -72,9 +73,10 @@ As you go through the Microsoft procedure, keep the following in mind: ...@@ -72,9 +73,10 @@ As you go through the Microsoft procedure, keep the following in mind:
```yaml ```yaml
- { name: 'azure_oauth2', - { name: 'azure_oauth2',
args: { client_id: "CLIENT ID", # label: 'Provider name', # optional label for login button, defaults to "Azure AD"
client_secret: "CLIENT SECRET", args: { client_id: "CLIENT ID",
tenant_id: "TENANT ID" } } client_secret: "CLIENT SECRET",
tenant_id: "TENANT ID" } }
``` ```
The `base_azure_url` is optional and can be added for different locales; The `base_azure_url` is optional and can be added for different locales;
...@@ -167,6 +169,7 @@ Alternatively, add the `User.Read.All` application permission. ...@@ -167,6 +169,7 @@ Alternatively, add the `User.Read.All` application permission.
gitlab_rails['omniauth_providers'] = [ gitlab_rails['omniauth_providers'] = [
{ {
"name" => "azure_activedirectory_v2", "name" => "azure_activedirectory_v2",
"label" => "Provider name", # optional label for login button, defaults to "Azure AD v2"
"args" => { "args" => {
"client_id" => "CLIENT ID", "client_id" => "CLIENT ID",
"client_secret" => "CLIENT SECRET", "client_secret" => "CLIENT SECRET",
...@@ -180,9 +183,10 @@ Alternatively, add the `User.Read.All` application permission. ...@@ -180,9 +183,10 @@ Alternatively, add the `User.Read.All` application permission.
```yaml ```yaml
- { name: 'azure_activedirectory_v2', - { name: 'azure_activedirectory_v2',
args: { client_id: "CLIENT ID", label: 'Provider name', # optional label for login button, defaults to "Azure AD v2"
client_secret: "CLIENT SECRET", args: { client_id: "CLIENT ID",
tenant_id: "TENANT ID" } } client_secret: "CLIENT SECRET",
tenant_id: "TENANT ID" } }
``` ```
The `base_azure_url` is optional and can be added for different locales; The `base_azure_url` is optional and can be added for different locales;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment