Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Using REST API from server for mfa enrollment (Identity Platform)

Can I use Identity Platform REST API from server for mfa enrollment?

Such as https://identitytoolkit.googleapis.com/v2/accounts/mfaEnrollment:start.

Now I have an error: 

Caused by: com.google.api.client.http.HttpResponseException: 400 Bad Request
POST https://oauth2.googleapis.com/token
{"error":"invalid_scope","error_description":"Invalid OAuth scope or ID token audience provided."}

 

0 1 1,774
1 REPLY 1