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

Differentiate jwt and claim errors in the API authentication #1031

Open
Pavinati opened this issue Dec 6, 2024 · 0 comments · May be fixed by #1034
Open

Differentiate jwt and claim errors in the API authentication #1031

Pavinati opened this issue Dec 6, 2024 · 0 comments · May be fixed by #1034
Labels
app:appengine_api This issue or pull request is about astarte_appengine_api application app:housekeeping_api This issue or pull request is about astarte_housekeeping_api application app:pairing_api This issue or pull request is about astarte_pairing_api application app:realm_management_api This issue or pull request is about astarte_realm_management_api application good first issue Good for newcomers user experience This issue is about user experience

Comments

@Pavinati
Copy link
Collaborator

Pavinati commented Dec 6, 2024

The authorization process for an Astarte token follows different checks:

  • there must be a token
  • it must be a valid JWT token
  • the token signature must match the realm public key
  • the requested path must match the Astarte claims in token

Currently only some of those report different errors, making it hard to debug the issue of provide useful feedback to users.

@Annopaolo Annopaolo assigned Annopaolo and unassigned Annopaolo Dec 9, 2024
@Annopaolo Annopaolo added good first issue Good for newcomers user experience This issue is about user experience app:appengine_api This issue or pull request is about astarte_appengine_api application app:housekeeping_api This issue or pull request is about astarte_housekeeping_api application app:pairing_api This issue or pull request is about astarte_pairing_api application app:realm_management_api This issue or pull request is about astarte_realm_management_api application labels Dec 9, 2024
@Annopaolo Annopaolo added this to Astarte Dec 9, 2024
@Pavinati Pavinati assigned Pavinati and unassigned Pavinati Dec 9, 2024
@arahmarchak arahmarchak linked a pull request Dec 11, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app:appengine_api This issue or pull request is about astarte_appengine_api application app:housekeeping_api This issue or pull request is about astarte_housekeeping_api application app:pairing_api This issue or pull request is about astarte_pairing_api application app:realm_management_api This issue or pull request is about astarte_realm_management_api application good first issue Good for newcomers user experience This issue is about user experience
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants