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
{{ message }}
Repository navigation
Commit ff3c8f8
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -234,6 +242,9 @@ export async function runSetIdpGroupMapping(
234
242
if(!connection.found){
235
243
returnrefuseFields([{field: 'connectionId',code: 'reference_not_found',message: `No SCIM connection '${connectionId}' exists: mint its credential first.`}]);
236
244
}
245
+
if(connection.organizations.length===0){
246
+
returnrefuseFields([{field: 'connectionId',code: 'rule_violation',message: `SCIM connection '${connectionId}' has no live credential (every one is revoked or expired), so no organization owns it. Mint a credential for it first.`}]);
247
+
}
237
248
if(connection.organizations.includes('')){
238
249
returnrefuseFields([{field: 'connectionId',code: 'rule_violation',message: `SCIM connection '${connectionId}' has a credential owned by no organization, so a grant it makes would belong to no organization. Mint the connection's credential in an organization first.`}]);
0 commit comments