Skip to content

Commit 69a7b83

Browse files
jurusixJuraj Jakubik
andauthored
use MSALCIAMAuthority for CIAM (#55)
Co-authored-by: Juraj Jakubik <[email protected]>
1 parent d6e3f97 commit 69a7b83

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

ios/Plugin/Plugin.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,15 @@ public class MsAuthPlugin: CAPPlugin {
172172
}
173173

174174
do {
175-
let authority = authorityType == .aad || authorityType == .ciam
176-
? try MSALAADAuthority(url: authorityURL) : try MSALB2CAuthority(url: authorityURL)
175+
let authority: MSALAuthority
176+
switch authorityType {
177+
case .aad:
178+
authority = try MSALAADAuthority(url: authorityURL)
179+
case .b2c:
180+
authority = try MSALB2CAuthority(url: authorityURL)
181+
case .ciam:
182+
authority = try MSALCIAMAuthority(url: authorityURL)
183+
}
177184

178185
if domainHint != nil {
179186
print("Warning: domain hint is currently not supported on iOS.")

0 commit comments

Comments
 (0)