From 8816dcd0dff4b85d82da1b28a41bdbac023258ab Mon Sep 17 00:00:00 2001 From: Alex Ullrich Date: Tue, 18 Apr 2023 14:28:17 -0400 Subject: [PATCH] claims: include session ID / SID Marshaled to 'sid' JWT claim https://www.iana.org/assignments/jwt/jwt.xhtml#claims --- authn/claims.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/authn/claims.go b/authn/claims.go index 5ce3ec2..12c3761 100644 --- a/authn/claims.go +++ b/authn/claims.go @@ -3,6 +3,7 @@ package authn import "gopkg.in/square/go-jose.v2/jwt" type Claims struct { - AuthTime *jwt.NumericDate `json:"auth_time"` + AuthTime *jwt.NumericDate `json:"auth_time"` + SessionID string `json:"sid"` jwt.Claims }