I am using iOS Swift Native SDK Auth0 iOS / macOS SDK Quickstarts: Login
I created a new file called: Auth0.plist (as mentioned in the documentation)
Now, I wanted to use another clientID and Domain for debug version (my app has 4 environments).
How to get this resolved.
Thanks
@konrad.sopala any help on this, much appreciated.
Thanks
Hey there @MuraliKathir !
Unfortunately we don’t have it specified in any of our docs. Asking our SDK team to see if they have any Xcode tricks for that!
1 Like
Yes, that’s correct.
Its not mentioned in docs. Could you please help me to reach the SDK team. May be you can tag the right people if you are aware.
Thanks
Unfortunately they are not in the developer community forum. I just asked them about it. Should have the answer very soon!
1 Like
Hey there!
Back with good news. You can instantiate it manually:
public let defaultScope = "openid profile email"
/**
Auth0 [Authentication API](https://auth0.com/docs/api/authentication) client to authenticate your user using Database, Social, Enterprise or Passwordless connections.
## Usage
```swift
Auth0.authentication(clientId: "client-id", domain: "samples.us.auth0.com")
```
- Parameters:
- clientId: Client ID of your Auth0 application.
- domain: Domain of your Auth0 account, for example `samples.us.auth0.com`.
- session: `URLSession` instance used for networking. Defaults to `URLSession.shared`.
- Returns: Auth0 Authentication API client.
*/
public func authentication(clientId: String, domain: String, session: URLSession = .shared) -> Authentication {
return Auth0Authentication(clientId: clientId, url: .httpsURL(from: domain), session: session)
}
The same goes for WebAuth
3 Likes
Let me know if you have any other questions down the road!
1 Like
It worked, thanks a lot @konrad.sopala .
1 Like
Glad to hear that! We’re here for you!
1 Like
system
Closed
March 8, 2019, 5:16pm
11
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.