auth0 / Guardian.Android

Android toolkit for Auth0 Guardian API
https://auth0.com/guardian
MIT License
5 stars 16 forks source link

Can't enroll using sample app #90

Open dmarjoram opened 5 years ago

dmarjoram commented 5 years ago

Hi there,

I may be doing something silly here, but I've cloned the sample app and library, and can't get an enrolment to work. The tenant is configured with Guardian enabled and I've also entered the custom SNS settings for Amazon etc. I've also updated firebase configuration and the guardian.xml resource file with the tenant name.

When a barcode is scanned, the Guardian library performs a call to https://mytenantishere.guardian.auth0.com/api/enroll

This call always returns a 401 with "Missing authentication", error code invalid_token.

D/OkHttp: <-- 401 https://mytenanthere.auth0.com/api/enroll (843ms) date: Fri, 06 Sep 2019 16:02:54 GMT content-type: application/json; charset=utf-8 D/OkHttp: content-length: 104 www-authenticate: Ticket cache-control: no-cache D/OkHttp: {"statusCode":401,"error":"Unauthorized","message":"Missing authentication","errorCode":"invalid_token"}

Any ideas?