auth0 / Guardian.Android

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

cant enroll in sample app #97

Open asad24188 opened 2 years ago

asad24188 commented 2 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.

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.

content-type: application/json; charset=utf-8 D/OkHttp: content-length: 104 www-authenticate: Ticket D/OkHttp: {"statusCode":401,"error":"Unauthorized","message":"Missing authentication","errorCode":"invalid_token"}

tharinduk90 commented 2 years ago

@asad24188 did u able to solve the issue?

tharinduk90 commented 2 years ago

The Guardian URL in t src/main/res/values/guardian.xml. It should look like this https://.guardian.us.auth0.com

not

https://.guardian.auth0.com

alexAgyapong commented 2 years ago

I'm facing the same issue. I have tried the following URLs and still not working

@tharinduk90 @asad24188 are you able to help?