mirror of
https://github.com/nais/wonderwall.git
synced 2026-08-23 21:16:14 +00:00
fix(handler/reverseproxy): add nil check for session
Co-authored-by: sindrerh2 <sindre.rodseth.hansen@nav.no>
This commit is contained in:
co-authored by
sindrerh2
parent
837323d728
commit
ab418c456c
@@ -124,7 +124,7 @@ func (rp *ReverseProxy) Handler(src ReverseProxySource, w http.ResponseWriter, r
|
||||
|
||||
if isAuthenticated {
|
||||
ctx = mw.WithAccessToken(ctx, accessToken)
|
||||
if rp.IncludeIdToken {
|
||||
if rp.IncludeIdToken && sess != nil {
|
||||
idToken := sess.IDToken()
|
||||
ctx = mw.WithIdToken(ctx, idToken)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user