
ka0i1 (ka0i1) asked a question.
I have a web application build with angular 9. It is already integrated with the okta widget and working just fine.
Now I am trying to embed this application into a mobile app.
On the Android platform, I have been able to add the origin into the trusted origins and now the login is working fine too.
I tried on ios and it gives a CORS error saying capacitor://localhost is not in the trusted origins, I tried to add using the same method then for Android but the Okta admin system refuses it saying "Origin value is not valid".
How can I workaround this issue?

Though I am not a mobile developer but I found something that can help you.
https://developer.okta.com/blog/2017/08/22/build-an-ionic-app-with-user-authentication
All the best !!
Thank you, but this is not answering my question. This tutorial does not explain how to configure the okta service to accept request from ios apps.
The authorization is working just fine on Android.
My issue with ios app is that it won't accept http(s) as a scheme while okta seems to accept only http(s).
is there any way to make these 2 work together?
So, I'm struggling to do something similar right now with a react app and capacitor. The last I was able to get details, okta would not be supporting the capacitor scheme. However, there is a new capacitor plugin here that allows native requests: https://github.com/capacitor-community/http
That said, I'm blocked myself with the redirect, which opens up safari to complete the authentication flow. Hoping I can find a way around this.