Skip to content

Commit c9b5a49

Browse files
committed
Map multi-value SAML attributes into multi-value HTTP header
1 parent a5c3de1 commit c9b5a49

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/proxy.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ func (p *proxy) handler(respOutWriter http.ResponseWriter, reqIn *http.Request)
6969

7070
if p.config.AttributeHeaderMappings != nil {
7171
for attr, hdr := range p.config.AttributeHeaderMappings {
72-
reqOut.Header.Set(hdr, authToken.Attributes.Get(attr))
72+
if values, ok := authToken.Attributes[attr]; ok {
73+
for _, value := range values {
74+
reqOut.Header.Add(hdr, value)
75+
}
76+
}
7377
}
7478
}
7579
if p.config.NameIdHeaderMapping != "" {

0 commit comments

Comments
 (0)