-
-
Notifications
You must be signed in to change notification settings - Fork 20
Closed as not planned
Labels
staleThere has not been activity on this issue or PR for quite some time.There has not been activity on this issue or PR for quite some time.
Description
Are you interested in adding support for using OAuth clients to authenticate? Regular API keys expire after at most 90 days, but OAuth client secrets never expire. This is helpful when setting up automation scripts where you don't want to have to update the key periodically.
I think this would not be too difficult:
- Add class variables for
oauth_client_idandoauth_client_secretto theTailscaleclass - Add method to call
https://api.tailscale.com/api/v2/oauth/tokenand save the token as theapi_keyon the class - Change the
_request()method to send the headerAuthorization: Bearer [...]instead of basic auth
The API documentation suggests you can use Authorization: Bearer [...] with a normal API key as well.
edel-macias-cubix, clayrosenthal and vladionescuedel-macias-cubix
Metadata
Metadata
Assignees
Labels
staleThere has not been activity on this issue or PR for quite some time.There has not been activity on this issue or PR for quite some time.