File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,17 @@ public static class Constants
3838 /// </summary>
3939 public static readonly string [ ] BitwardenCloudDomains = [ "bitwarden.com" , "bitwarden.eu" , "bitwarden.pw" ] ;
4040
41+ /// <summary>
42+ /// Server permitted SSO callback redirect URIs for mobile clients.
43+ /// </summary>
44+ public static readonly string [ ] BitwardenMobileSsoCallbackUris =
45+ [
46+ "bitwarden://sso-callback" ,
47+ "https://bitwarden.com/sso-callback" ,
48+ "https://bitwarden.eu/sso-callback" ,
49+ "https://bitwarden.pw/sso-callback" ,
50+ ] ;
51+
4152 /// <summary>
4253 /// Used by IdentityServer to identify our own provider.
4354 /// </summary>
Original file line number Diff line number Diff line change @@ -83,9 +83,7 @@ public ApiClient(
8383 }
8484 else if ( id == "mobile" )
8585 {
86- RedirectUris = new [ ] { "bitwarden://sso-callback" }
87- . Concat ( Constants . BitwardenCloudDomains . Select ( d => $ "https://{ d } /sso-callback") )
88- . ToArray ( ) ;
86+ RedirectUris = Constants . BitwardenMobileSsoCallbackUris ;
8987 PostLogoutRedirectUris = new [ ] { "bitwarden://logged-out" } ;
9088 }
9189
You can’t perform that action at this time.
0 commit comments