You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note, this should match what is defined as the app Id. (In Xcode click the project name in the top left, and the Bundle Identifier can be seen)
Updating the AuthenticationService logic
Update the redirect URL: let REDIRECT_URL = URL(string:"com.redhat.secure-ios-app.sso2:/callback")Code
Update the authCall to include using the Safari browser or other: Code
let externalUserAgent = OIDExternalUserAgentIOSCustomBrowser.customBrowserSafari();
// this will automatically exchange the token to get the user info
self.currentAuthorisationFlow = OIDAuthState.authState(byPresenting: oidAuthRequest, externalUserAgent: externalUserAgent) {
...
Run the app and check auth works.
Update all the URL's above to use com.redhat.secure-ios-app.sso to mimic a second app. Ensure that you also change the app ID for the project too. (In Xcode click the project name in the top left, and the Bundle Identifier can be seen). Then try the normal SSO flow and it should work.
I have added the code changes in my master branch.
The text was updated successfully, but these errors were encountered:
@wei-lee Yes, works fine with Safari. You can use other browsers like so:
let chromeBrowser = OIDExternalUserAgentIOSCustomBrowser.customBrowserChrome();
let firefoxBrowser = OIDExternalUserAgentIOSCustomBrowser.customBrowserFirefox();
let operaBrowser = OIDExternalUserAgentIOSCustomBrowser.customBrowserOpera();
Reference the AppAuth-iOS Master Branch which has Custom Browser Support in the Podfile.
pod 'AppAuth', :git => 'https://github.com/openid/AppAuth-iOS.git', :branch => 'master'
Allow Custom Browsers to be Opened
In the
info.plist
add:Setup the App Identifier for the Browser to Redirect Back To
In the
info.plist
update to:Note, this should match what is defined as the app Id. (In Xcode click the project name in the top left, and the Bundle Identifier can be seen)
Updating the AuthenticationService logic
Update the redirect URL:
let REDIRECT_URL = URL(string:"com.redhat.secure-ios-app.sso2:/callback")
CodeUpdate the authCall to include using the Safari browser or other: Code
com.redhat.secure-ios-app.sso
to mimic a second app. Ensure that you also change the app ID for the project too. (In Xcode click the project name in the top left, and the Bundle Identifier can be seen). Then try the normal SSO flow and it should work.I have added the code changes in my master branch.
The text was updated successfully, but these errors were encountered: