Add authentication to REST API #28

Closed
opened 2026-03-14 09:41:22 +01:00 by bent · 1 comment
Owner
No description provided.
bent added this to the Version 0.3 - REST client (with auth & sync) milestone 2026-03-14 09:41:22 +01:00
bent added the
enhancement
label 2026-03-14 09:41:22 +01:00
bent added this to the Desktop Client project 2026-03-14 09:41:22 +01:00
Author
Owner

GQC API auth via token:

Programmstart:

  • weder token noch user credentials -> nothing
  • user credential, but no auth token -> post log_in to fetch token
  • auth token in settings -> assume validity of token

on "403 Forbidden" reply (or "401 Unauthorized"?):

  • minimal solution:

    • show error in status message
    • remove token from settings (successful API calls need restart of application)
  • improved solution:

    • ErrorDialog "Maybe the token is invalid. Retry login?"

OnCredentialsChanged:

  • remove old token
  • post log_in to fetch new token
### GQC API auth via token: Programmstart: - weder token noch user credentials -> nothing - user credential, but no auth token -> post log_in to fetch token - auth token in settings -> assume validity of token on "403 Forbidden" reply (or "401 Unauthorized"?): - minimal solution: - show error in status message - remove token from settings (successful API calls need restart of application) - improved solution: - ErrorDialog "Maybe the token is invalid. Retry login?" OnCredentialsChanged: - remove old token - post log_in to fetch new token
bent closed this issue 2026-05-09 11:40:10 +02:00
Sign in to join this conversation.
No description provided.