You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/administration/single-sign-on/sso-google.md
+71-6Lines changed: 71 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,10 +106,16 @@ This concludes the basic SSO setup for Google. For team/group synchronization yo
106
106
107
107
##Synchronize teams with the Codefresh CLI
108
108
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:
111
112
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.
113
119
114
120
{% include image.html
115
121
lightbox="true"
@@ -137,14 +143,73 @@ caption="Creating a JSON key"
137
143
max-width="90%"
138
144
%}
139
145
140
-
141
-
142
-
143
146
Save the file locally. Go back to the Codefresh settings and fill in the fields
144
147
145
148
*`JSON Keyfile` - enter contents of the JSON file
146
149
*`Admin email` - The user that has access to`admin.google.com`
147
150
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).
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
+
148
213
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) .
Copy file name to clipboardExpand all lines: _docs/administration/single-sign-on/sso-setup-saml2.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,10 +80,12 @@ Fill in the fields:
80
80
**IDP Entry* - The SSO endpoint of your Identity Provider. (Ex: For Azure SAML, this is the Login URL)
81
81
**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)
82
82
**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
+
83
86
84
87
Click the*SAVE* button and make sure to note down the`Client Name` that was autogenerated.
85
88
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.
87
89
88
90
Then in the settings of your Identity Provider create a new Service Provider and provide the following: