mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05: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