MSAL в ушедшем в отставку приложении Swift/iOS не работает: «Не удалось сериализовать словарь запроса единого входа для ⇐ IOS
MSAL в ушедшем в отставку приложении Swift/iOS не работает: «Не удалось сериализовать словарь запроса единого входа для
I'm getting this auth error when trying to authenticate in a resigned app:
I have a Swift app with bundle identifier A.A.A.A, that uses MSAL. It works flawlessly when running the app on my device locally via cable and after archiving in xcode cloud.
If I then try to resign the .ipa with an Enterprise certificate and a new bundle ID A.A.A.B (using fastlane sigh command), then the auth webview doesent open when executing application.context.aquireToken(...).
func getTokenInteractivly() { guard let webViewParamaters = webViewParamaters else { print("Rootview missing") LogService.shared.log(logString: "Rootview missing in getTokenInteractivly()") return } do { let applicationContext = try tryGetMSALContext() let interactiveParameters = MSALInteractiveTokenParameters(scopes: kScopes, webviewParameters: webViewParamaters) applicationContext.acquireToken(with: interactiveParameters, completionBlock: { (result, error) in guard let authResult = result, error == nil else { LogService.shared.log(logString: "Error while acquireToken: \(String(describing: error))") // This is where it fails
Источник: https://stackoverflow.com/questions/781 ... quest-dict
I'm getting this auth error when trying to authenticate in a resigned app:
I have a Swift app with bundle identifier A.A.A.A, that uses MSAL. It works flawlessly when running the app on my device locally via cable and after archiving in xcode cloud.
If I then try to resign the .ipa with an Enterprise certificate and a new bundle ID A.A.A.B (using fastlane sigh command), then the auth webview doesent open when executing application.context.aquireToken(...).
func getTokenInteractivly() { guard let webViewParamaters = webViewParamaters else { print("Rootview missing") LogService.shared.log(logString: "Rootview missing in getTokenInteractivly()") return } do { let applicationContext = try tryGetMSALContext() let interactiveParameters = MSALInteractiveTokenParameters(scopes: kScopes, webviewParameters: webViewParamaters) applicationContext.acquireToken(with: interactiveParameters, completionBlock: { (result, error) in guard let authResult = result, error == nil else { LogService.shared.log(logString: "Error while acquireToken: \(String(describing: error))") // This is where it fails
Источник: https://stackoverflow.com/questions/781 ... quest-dict
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение