Commit ecc23e39 authored by Gurvinder Singh's avatar Gurvinder Singh
Browse files

added support for acr_values and userid-sec as separate fields

closes #1
parent d17d40a8
......@@ -89,6 +89,8 @@ func (jwm *JWTMiddleware) getJWTToken(
claims.SetIssuedAt(now)
claims.SetAudience(aud)
claims.Set("principals", principals)
claims.Set("acr_values", r.Header.Get("X-Dataporten-Acr-Values"))
claims.Set("userid-sec", r.Header.Get("X-Dataporten-Userid-Sec"))
claims.SetIssuer(conf.GetStringValue("engine.issuer_url"))
claims.SetExpiration(now.Add(time.Duration(conf.GetIntValue("engine.token_age")) * time.Second))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment