AthenZ / k8s-athenz-sia

Apache License 2.0
1 stars 7 forks source link

Refactor `requestTokenToZts()` #107

Open WindzCUHK opened 5 months ago

WindzCUHK commented 5 months ago

https://github.com/AthenZ/k8s-athenz-sia/blob/f6de56a109c7e4e6062b7f62a1e5542813c2e7f3/pkg/token/daemon.go#L165

  1. split access token and role token group object to shorten the key
  2. merge UniqueId() and String() function