mirror of
https://github.com/bitwarden/server
synced 2025-12-15 07:43:54 +00:00
SSO - Added custom scopes and claim types for OIDC (#1133)
* SSO - Added custom scopes and claim types for OIDC * Removed redundant field labels * Added acr_values to OIDC config + request
This commit is contained in:
@@ -810,5 +810,15 @@ namespace Bit.Core.Utilities
|
||||
|
||||
return System.Text.Json.JsonSerializer.Deserialize<T>(jsonData, options);
|
||||
}
|
||||
|
||||
public static ICollection<T> AddIfNotExists<T>(this ICollection<T> list, T item)
|
||||
{
|
||||
if (list.Contains(item))
|
||||
{
|
||||
return list;
|
||||
}
|
||||
list.Add(item);
|
||||
return list;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user