Get Domain from CIAM preprod envionment portal for a SwiftUI app

Hi

I’m trying to implement Okta login in a iOS App with SwiftUI

I’ve found multiple ways to do this:

Using GitHub - okta/okta-mobile-swift: okta-mobile-swift
Using Auth0 https://www.youtube.com/watch?v=X3L9GLrWQqI&ab_channel=OktaDev

The problem with the first one is that is not adapted to SwiftUI

So I was trying to use the second option but I can’t find the domain field in the CIAM preprod envionment portal ( the okta admin portal ).

In the video example they are using the Auth0 portal, but I’m a bit confused, is this different to the Okta portal? Can I get the domain field in the Okta portal?

Am I missing something? Any help is appreciated.

Thanks

Hi @NanoCaros,

Okta currently does not have anything built specifically for SwiftUI, so Mobile Swift is going to be the closest offering we have out of the box.

If you are asking about how to construct the OAuth2 client settings, you can configure the webauthentication class to do so: Documentation and use the settings for an OAuth application such as the Issuer and other info from the Discovery endpoint for your Okta org.