TeamDesk Knowledge Base & Support

   Home      FAQ      Forum      Idea Exchange      Ask a Question      My Stuff      Help   
  
Programatic API Token generation
It would be useful to be able to generate API token's promgramatically for use in things like mobile apps. Given TD's row based security model, tokens that impersonate a user can frustrate the developer experience in these scenarios as we have to manually create tokens for users OR do some sort of hack to use a single token and attribute changes to the actual user (and in the process actually break the permissions originally intended). We have also used basic auth with cookie storage, but it feels fragile and doesn't offer the same long-lived benefit of a token.

Looking at the UI, we almost have enough to do it programmatically using a call to the existing UI, but we don't have access to the global "User ID" that would allow this to work properly.

I'd like to see either, but preferably number 1:

1. A new REST endpoint to issue/revoke tokens that accepts a [User] as an argument.
2. or provide the user id to us in the users table, and we can roll our own using existing UI post calls
ID
2044
Category
Integration/API
Author

Nick Kemp
Date Created
4/26/2024 4:30:07 PM
Date Updated
4/26/2024 4:30:07 PM
Status
New Idea
Score
40
Promoted By
Nacho Alvarez de ToledoPatricio BustosIgnacio Alvarez Toledo Blandon
Nick Kemp
Feedback
 
Back to Search Results