Skip to content

Commit

Permalink
don't use offline_access scope for implicit since it doesn't generate…
Browse files Browse the repository at this point in the history
… an authorization code
  • Loading branch information
BeryJu committed Jan 1, 2024
1 parent c5bd523 commit 4eff42a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkg/implicit.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,15 @@ func (c *OIDCClient) implicit(w http.ResponseWriter, r *http.Request) {
ClientID: c.config.ClientID,
DiscoveryURL: c.providerURL,
RootURL: c.rootURL,
Scopes: strings.Join(getScopes(), " "),
Scopes: strings.TrimSpace(
strings.ReplaceAll(
strings.Join(
getScopes(), " ",
),
"offline_access",
"",
),
),
}
err := tmpl.Execute(w, context)
if err != nil {
Expand Down

0 comments on commit 4eff42a

Please sign in to comment.