outposts/proxy: add X-Auth-Groups header to pass groups

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-07-22 10:47:58 +02:00
parent c05240afbf
commit 66bfa6879d
3 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,7 @@ type Claims struct {
Proxy struct {
UserAttributes map[string]interface{} `json:"user_attributes"`
} `json:"ak_proxy"`
Groups []string `json:"groups"`
}
func (c *Claims) FromIDToken(idToken string) error {