Skip to content

feat: add azure oidc PKI auth instead of client secret #9054

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Aug 14, 2023
Merged
Prev Previous commit
Next Next commit
add little comment about constant 5min
  • Loading branch information
Emyrk committed Aug 14, 2023
commit 801799f429acbe2d692a202d8ca9a60127551b5c
2 changes: 2 additions & 0 deletions coderd/oauthpki/oidcpki.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ func (ja *Config) jwtToken() (string, error) {
"iss": ja.clientID,
"sub": ja.clientID,
"aud": ja.tokenURL,
// 5-10 minutes is recommended in the Azure docs.
// So we'll use 5 minutes.
"exp": now.Add(time.Minute * 5).Unix(),
"jti": uuid.New().String(),
"nbf": now.Unix(),
Expand Down