providers/proxy: return list of configured scope names so outpost requests custom scopes

closes #1762

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-11-10 23:06:21 +01:00
parent 1e8d45dc15
commit c98bdbacc5
3 changed files with 18 additions and 1 deletions

View File

@ -66,7 +66,7 @@ func NewApplication(p api.ProxyOutpostConfig, c *http.Client, cs *ak.CryptoStore
ClientSecret: *p.ClientSecret,
RedirectURL: urlJoin(p.ExternalHost, "/akprox/callback"),
Endpoint: endpoint.Endpoint,
Scopes: []string{oidc.ScopeOpenID, "profile", "email", "ak_proxy"},
Scopes: p.ScopesToRequest,
}
mux := mux.NewRouter()
a := &Application{