Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant enroll in sample app #97

Open
asad24188 opened this issue May 7, 2022 · 3 comments
Open

cant enroll in sample app #97

asad24188 opened this issue May 7, 2022 · 3 comments

Comments

@asad24188
Copy link

asad24188 commented May 7, 2022

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
Copy link

@asad24188 did u able to solve the issue?

@tharinduk90
Copy link

tharinduk90 commented Jun 27, 2022

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

not

https://<YOUR_TENANT>.guardian.auth0.com

@alexAgyapong
Copy link

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

  • https://<YOUR_TENANT>.guardian.auth0.com
  • https://<YOUR_TENANT>.guardian.us.auth0.com
  • https://<YOUR_TENANT>.guardian.eu.auth0.com

@tharinduk90 @asad24188 are you able to help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants