Skip to content

feat: improve OAuth client secret support with --advertise-tags flag#166

Merged
mikeodr merged 1 commit into
tailscale:mainfrom
DAcodedBEAT:oauth-fix
Apr 15, 2026
Merged

feat: improve OAuth client secret support with --advertise-tags flag#166
mikeodr merged 1 commit into
tailscale:mainfrom
DAcodedBEAT:oauth-fix

Conversation

@DAcodedBEAT
Copy link
Copy Markdown
Contributor

@DAcodedBEAT DAcodedBEAT commented Apr 8, 2026

  • Add --advertise-tags CLI flag (also reads TS_ADVERTISE_TAGS env var)
  • Update README with required OAuth scope: Auth Keys → Write
Usage examples
% TS_AUTHKEY=tskey-client-<...> TS_ADVERTISE_TAGS=tag:tsidp ./tsidp-server
2026/04/08 22:40:17 INFO Using advertise tags tags=tag:tsidp
2026/04/08 22:40:17 tsnet running state path /Users/<user>/Library/Application Support/tsnet-tsidp-server/tailscaled.state
2026/04/08 22:40:17 tsnet starting with hostname "idp", varRoot "/Users/<user>/Library/Application Support/tsnet-tsidp-server"
2026/04/08 22:40:17 Authkey is set; but state is NoState. Ignoring authkey. Re-run with TSNET_FORCE_LOGIN=1 to force use of authkey.
2026/04/08 22:40:19 INFO tsidp server started server_url=https://idp.<tailnet>.ts.net
2026/04/08 22:40:22 AuthLoop: state is Running; done
^C2026/04/08 22:40:28 INFO interrupt, exiting
% TS_AUTHKEY=tskey-client-<...> ./tsidp-server --advertise-tags tag:tsidp
2026/04/08 22:42:17 INFO Using advertise tags tags=tag:tsidp
2026/04/08 22:42:17 tsnet running state path /Users/<user>/Library/Application Support/tsnet-tsidp-server/tailscaled.state
2026/04/08 22:42:17 tsnet starting with hostname "idp", varRoot "/Users/<user>/Library/Application Support/tsnet-tsidp-server"
2026/04/08 22:42:17 Authkey is set; but state is NoState. Ignoring authkey. Re-run with TSNET_FORCE_LOGIN=1 to force use of authkey.
2026/04/08 22:42:19 INFO tsidp server started server_url=https://idp.<tailnet>.ts.net
2026/04/08 22:42:22 AuthLoop: state is Running; done
^C2026/04/08 22:42:24 INFO interrupt, exiting

- Add --advertise-tags CLI flag (also reads TS_ADVERTISE_TAGS env var)
- Update README with required OAuth scope: Auth Keys → Write

Signed-off-by: Arun Philip <dacodedbeat@gmail.com>
Copy link
Copy Markdown
Collaborator

@mikeodr mikeodr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR and documentation updates.

@mikeodr mikeodr merged commit aab4294 into tailscale:main Apr 15, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants