Skip to content

Commit

Permalink
oidc: add note about OAuth2 authorization grant support
Browse files Browse the repository at this point in the history
  • Loading branch information
LRitzdorf committed Jul 17, 2024
1 parent 4a9b067 commit ce70174
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/smdclient/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ type oidcTokenData struct {
}

// Refresh the cached access token, using the provided JWT server
// TODO: OPAAL returns a token without having to perform the usual OAuth2
// authorization grant. Support for said grant should probably be implemented
// at some point.
func (s *SMDClient) RefreshToken() error {
// Request new token from OIDC server
r, err := http.Get(s.tokenEndpoint)
Expand Down

0 comments on commit ce70174

Please sign in to comment.