Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite0c47ce

Browse files
authored
Merge pull request#373 from codefresh-io/calssic-google-team-sync
Update for CR-5394 SAML google sync teams
2 parents2590724 +67b40a5 commite0c47ce

File tree

5 files changed

+74
-7
lines changed

5 files changed

+74
-7
lines changed

‎_docs/administration/single-sign-on/sso-google.md‎

Lines changed: 71 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,16 @@ This concludes the basic SSO setup for Google. For team/group synchronization yo
106106

107107
##Synchronize teams with the Codefresh CLI
108108

109-
In the Codefresh configuration screen there are some optional fields that you can fill, in order to
110-
get team synchronization via the Codefresh CLI. You need to create a service account and[delegate user and group permissions](https://developers.google.com/admin-sdk/directory/v1/guides/delegation) to it.
109+
In the Codefresh configuration screen there are some optional fields that you can fill, to configure team synchronization via the Codefresh CLI.
110+
111+
You can do one of the following:
111112

112-
Create a Service account from Google Console:
113+
* Sync_all users and groups_, by creating a service account and[delegating user and group permissions](https://developers.google.com/admin-sdk/directory/v1/guides/delegation) to it.
114+
* Sync_only users who have been assigned the custom schema_, by creating a custom schema for user accounts, and creating and assigning the user role.
115+
116+
117+
###Sync all users with service account from Google Console
118+
Use this method to sync all users.
113119

114120
{% include image.html
115121
lightbox="true"
@@ -137,14 +143,73 @@ caption="Creating a JSON key"
137143
max-width="90%"
138144
%}
139145

140-
141-
142-
143146
Save the file locally. Go back to the Codefresh settings and fill in the fields
144147

145148
*`JSON Keyfile` - enter contents of the JSON file
146149
*`Admin email` - The user that has access to`admin.google.com`
147150

151+
###Sync users by assigning custom schema to user accounts
152+
Use this method to sync only those users who have been assigned the user role with the custom schema.
153+
154+
1. Navigate to the[Google Directory API](https://developers.google.com/admin-sdk/directory/v1/reference/schemas/insert?authuser=1).
155+
1. Add the following schema:
156+
```
157+
{
158+
"schemaName": "SSO",
159+
"displayName": "SSO",
160+
"fields": [
161+
{
162+
"fieldType": "STRING",
163+
"fieldName": "UserRole",
164+
"displayName": "UserRole",
165+
"multiValued": true,
166+
"readAccessType": "ADMINS_AND_SELF"
167+
}
168+
]
169+
}
170+
```
171+
1. In the GSuite Admin panel, go to`Apps > SAML`.
172+
173+
{% include image.html
174+
lightbox="true"
175+
file="/images/administration/sso/google/google-gsuite-admin.png"
176+
url="/images/administration/sso/google/google-gsuite-admin.png"
177+
alt="SAML apps in GSuite Admin panel"
178+
caption="SAML apps in GSuite Admin panel"
179+
max-width="40%"
180+
%}
181+
182+
{:start="4"}
183+
1. Expand the Attribute Mapping settings, and add a Role attribute with the above schema for`SSO` and`UserRole`.
184+
1. For every user to be synced, in the User Information screen, scroll to`SSO > UserRole`, and assign the user role.
185+
186+
{% include image.html
187+
lightbox="true"
188+
file="/images/administration/sso/google/google-gusite-user-info.png"
189+
url="/images/administration/sso/google/google-gusite-user-info.png"
190+
alt="User Information screen in GSuite"
191+
caption="User Information screen in GSuite"
192+
max-width="40%"
193+
%}
194+
195+
196+
###Configure sync setting in Codefresh SAML
197+
This is required only if you are syncing users via a custom schema.
198+
199+
200+
1. In the Codefresh UI, open the SAML configuration screen.
201+
1. In the`Sync` field, set the value to the custom schemaName.
202+
203+
{% include image.html
204+
lightbox="true"
205+
file="/images/administration/sso/google/google-cf-saml-setting.png"
206+
url="/images/administration/sso/google/google-cf-saml-setting.png"
207+
alt="SAML Sync Setting in Codefresh for Google GSuite"
208+
caption="SAML Sync Setting in Codefresh for Google GSuite"
209+
max-width="40%"
210+
%}
211+
212+
148213
Now you can[synchronize teams with the Codefresh CLI]({{site.baseurl}}/docs/administration/single-sign-on/sso-setup-oauth2/#syncing-of-teams-after-initial-sso-setup) .
149214

150215

‎_docs/administration/single-sign-on/sso-setup-saml2.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ Fill in the fields:
8080
**IDP Entry* - The SSO endpoint of your Identity Provider. (Ex: For Azure SAML, this is the Login URL)
8181
**Application Certificate* - The security certificate of your Identity Provider. Paste the value directly on the field. Do not convert to base64 or any other encoding by hand. (Ex: For Azure SAML, this will be Certificate (Base64) and the value needed is between the -----BEGIN ... and -----END... from the downloaded cert)
8282
**Assertion URL* -`https://g.codefresh.io/api/auth/<your_codefresh_client_name>/callback​` (where ​<your_codefresh_client_name>​ is taken from the SSO configuration you created on the section above. It was automatically generated by Codefresh after saving the SSO settings).
83+
**Auto Sync users and teams to Codefresh* - This only works for Google / GSuite SAML integration.
84+
When syncing users with custom schema, in the*Sync* field, add the custom schemaName. Otherwise, if you are syncing all users and groups, leave this field empty.
85+
8386

8487
Click the*SAVE* button and make sure to note down the`Client Name` that was autogenerated.
8588

86-
>Notice: When viewing the SAML, there is a check box for Auto Sync users and teams to Codefresh. This only works for Google / GSuite SAML integration.
8789

8890
Then in the settings of your Identity Provider create a new Service Provider and provide the following:
8991

247 KB
Loading
250 KB
Loading
159 KB
Loading

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp