Skip to content

Commit

Permalink
Merge pull request #99 from nlnwa/feat/scope
Browse files Browse the repository at this point in the history
Revert "refactor: remove non-standard scope"
  • Loading branch information
maeb authored Jan 26, 2024
2 parents 57f94f0 + 5afa2a8 commit 4a4a97e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connection/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func loginOIDC(oidcConfig *config.OIDCConfig, manualLogin bool) (*claims, error)
// Does the provider use "offline_access" scope to request a refresh token
// or does it use "access_type=offline" (e.g. Google)?
offlineAsScope := false
scopes := []string{oidc.ScopeOpenID, "profile", "email", "groups"}
scopes := []string{oidc.ScopeOpenID, "profile", "email", "groups", "audience:server:client_id:veidemann-api"}
if offlineAsScope {
scopes = append(scopes, "offline_access")
}
Expand Down

0 comments on commit 4a4a97e

Please sign in to comment.