I am trying to run a Fiori for iOS app created through the assistant and I am getting an authorization code request failed error. This is using the latest SDK for Xcode 9.

Below is the log
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000} span.s1 {font-variant-ligatures: no-common-ligatures}
2017-10-03 10:02:52.478353+0530 ShopUsingAssistant[34173:4934679] [Application] Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?
2017-10-03 10:02:52.502473+0530 ShopUsingAssistant[34173:4934679] Unknown class FUIOnboardingButton in Interface Builder file.
2017-10-03 10:02:52.519959+0530 ShopUsingAssistant[34173:4934679] Unknown class FUIOnboardingButton in Interface Builder file.
2017-10-03 10:02:52.520285+0530 ShopUsingAssistant[34173:4934679] Unknown class FUITextView in Interface Builder file.
2017-10-03 10:02:52.526434+0530 ShopUsingAssistant[34173:4934679] [MC] Lazy loading NSBundle MobileCoreServices.framework
2017-10-03 10:02:52.527319+0530 ShopUsingAssistant[34173:4934679] [MC] Loaded MobileCoreServices.framework
2017-10-03 10:02:52.529389+0530 ShopUsingAssistant[34173:4934679] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/emathew004/Library/Developer/CoreSimulator/Devices/7558241D-76FF-42D0-92E1-807269F09A1B/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2017-10-03 10:02:52.540747+0530 ShopUsingAssistant[34173:4934679] Unknown class FUITextView in Interface Builder file.
2017-10-03 10:02:52.552821+0530 ShopUsingAssistant[34173:4934679] Unknown class FUIOnboardingButton in Interface Builder file.
2017-10-03 10:02:52.553088+0530 ShopUsingAssistant[34173:4934679] Unknown class FUIOnboardingButton in Interface Builder file.
2017-10-03 10:02:52.553253+0530 ShopUsingAssistant[34173:4934679] Unknown class FUITextView in Interface Builder file.
2017-10-03 10:02:52.555570+0530 ShopUsingAssistant[34173:4934679] Unknown class FUITextView in Interface Builder file.
2017-10-03 10:02:52.573057+0530 ShopUsingAssistant[34173:4934679] [general] # AppDelegateLogger - ERROR - (Main) - AppDelegate.swift.application(_:didFailToRegisterForRemoteNotificationsWithError:) - Failed to register for Remote Notification (Error: remote notifications are not supported in the simulator)
2017-10-03 10:03:16.692005+0530 ShopUsingAssistant[34173:4934679] [MC] Reading from private effective user settings.
2017-10-03 10:03:16.742320+0530 ShopUsingAssistant[34173:4934679] API error: <_UIKBCompatInputView: 0x7f96dd2423a0; frame = (0 0; 0 0); layer = <CALayer: 0x604000039000>> returned 0 width, assuming UIViewNoIntrinsicMetric
2017-10-03 10:03:16.742487+0530 ShopUsingAssistant[34173:4934679] API error: <_UIKBCompatInputView: 0x7f96dd2423a0; frame = (0 0; 0 0); layer = <CALayer: 0x604000039000>> returned 0 width, assuming UIViewNoIntrinsicMetric
2017-10-03 10:03:46.285487+0530 ShopUsingAssistant[34173:4934875] [general] # SAP.Foundation.Authentication.OAuth2Authenticator - ERROR - (0x600000078600) - OAuth2Authenticator.swift.token(using:completionHandler:) - OAuth2 request provider failed with error. (Error: OAuth2Error.cancelled: The authentication got cancelled.)
2017-10-03 10:03:46.292513+0530 ShopUsingAssistant[34173:4934875] [general] # SAP.Foundation.Authentication.OAuth2Observer - ERROR - (0x600000078600) - OAuth2Observer.swift.authenticate(dataTask:request:completionHandler:) - Task(1): Error during authentication! (Error: OAuth2Error.cancelled: The authentication got cancelled.)
2017-10-03 10:03:46.294504+0530 ShopUsingAssistant[34173:4934877] [general] # SAP.Flows.Onboarding.Steps.OAuth2Authentication - ERROR - (0x60c00027f8c0) - OAuth2AuthenticationStep.swift.validate(authenticationURL:authenticator:sapURLSession:credentialStore:completionHandler:) - Authentication request failed! (Error: Authentication failed: Error in response. Status code: 0. Network error: OAuth2Error.cancelled: The authentication got cancelled.))
2017-10-03 10:03:46.295048+0530 ShopUsingAssistant[34173:4934877] [general] # SAP.Flows.Onboarding.FlowController - ERROR - (0x60c00027f8c0) - OnboardingFlowController.swift.runMethod(index:context:) - Step (3): OAuth2AuthenticationStep - FAILED (Error: Authentication failed: Error in response. Status code: 0. Network error: OAuth2Error.cancelled: The authentication got cancelled.))
2017-10-03 10:03:46.301013+0530 ShopUsingAssistant[34173:4934679] [general] # OnbardingManager - ERROR - (Main) - OnboardingManager.swift.onboardingCompleted - Onboarding failed! (Error: Authentication failed: Error in response. Status code: 0. Network error: OAuth2Error.cancelled: The authentication got cancelled.))
2017-10-03 10:03:48.334096+0530 ShopUsingAssistant[34173:4934679] Unknown class FUIOnboardingButton in Interface Builder file.
2017-10-03 10:03:48.334584+0530 ShopUsingAssistant[34173:4934679] Unknown class FUIOnboardingButton in Interface Builder file.
2017-10-03 10:03:48.334863+0530 ShopUsingAssistant[34173:4934679] Unknown class FUITextView in Interface Builder file.
2017-10-03 10:03:48.339324+0530 ShopUsingAssistant[34173:4934679] Unknown class FUITextView in Interface Builder file.
Request clarification before answering.
Hello Eldhose,
Even I faced the same issue, as Andreas mentioned, I have changed my iOS app client ID configuration by comparing it with SAP CP configuration and it's working fine now. Kindly cross verify with your configuration of client ID, redirect URL of your iOS application.
Cheers,
Jana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I forgot to mention: in the logs I have the following info message: "The OAuth token is missing in the request"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Garin,
"The OAuth token is missing in the request" - for this error you need to configure OAuth setup in security of your SAP CP application for your account. if settings are done kindly re-check/cross-check with your client ID, redirect URL generation with your content - go app configuration.
Regards,
Jana
Hi Eldhose,
I'm having the same issue, but from the Content To Go app.
Have you been able to solve your issue? If so, I'd be interested in the solution you applied.
I'm having difficulties with the Content to Go application, as I cannot pass the registration stage. I would think that your issue (and mine) are linked to the Auth setup rather than the app itself, but I may be wrong. This error happened once the Cloud Admin changed smth in the Basic Auth setup. Before that I was "just" having a Registration error.
Best regards,
Garin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Eldhose,
This can happen if the client id and redirect URI are not matching up between SAP CP configuration and what you have set up in your iOS app - can you cross-check that please?
Thanks
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you tell the version of your iOS SDK?
Are you using SP01 PL02 or higher? If not, you need to get the higher version to support xCode 9.
Also can you tell what is the system for your iOS device? iOS 10 or iOS 11?
Best regards,
Charlie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.