This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.4.5.2. groups 要求の設定
Argo CD でユーザーを管理するには、認証トークンに追加できるグループ要求を設定する必要があります。
手順
Keycloak ダッシュボードで Client Scope に移動し、以下の値を使用して新規クライアントを追加します。
- Name
-
groups - Protocol
-
openid-connect - Display On Content Scope
-
ON - Include to Token Scope
-
オン
-
Save をクリックし、
groupsMappers に移動します。 以下の値を使用して新規トークンマッパーを追加します。
- Name
-
groups - Mapper Type
-
Group Membership - Token Claim Name
groupsトークンマッパーはクライアントが
groupsを要求する際にgroups要求をトークンに追加します。
-
Clients
Client Scopes に移動し、クライアントをグループスコープを提供するように設定します。Assigned Default Client Scopes テーブルで groupsを選択し、Add selected をクリックします。groupsスコープは、Available Client Scopes テーブルにある必要があります。 -
Users
Admin Groups に移動し、グループ ArgoCDAdminsを作成します。