I am trying to set up the first version of an app with realm platform 2 developer edition and an iOS Swift client, using Authentication by Auth0 (OIDC compliant). Steps I did to set everything up:
On the ROS (index.ts):
let auth0 = new JwtAuthProvider(
publicKey: '-----BEGIN CERTIFICATE-----MIIbklQ-----END CERTIFICATE-----'
On Auth0: I could add the required fields “userID” and “isAdmin” to the JWT, except that they, according to OIDC bear a “http://mydomain.com/“-prefix.
- Trying to sign in on my Swift app with:
let auth0Credentials = SyncCredentials(customToken: idToken, provider: Provider("jwt"))
SyncUser.logIn(with: auth0Credentials, server: SERVER_HTTP_URL )
Despite the token being valid (according to jwt.io) I get the message “ The provided credentials are invalid or the user does not exist” from realm with an 401 HTTP code. There is no further information visible in the server log.
Of course there is no actual realm or Object-Server user, but I was assuming that either one is being created for me according to my auth0 user. Are there steps I am missing out? If so, where do I find documentation about it?
After a 1-1 mapping of users and realms is established my goal would be to create “group realms”, I guess the Permission API serves that purpose.
Would be great if someone could help me out or share related information