Preflight checklist
Ory Network Project
No response
Describe your problem
openid.Session requires subject to be set. openid.NewDefaultSession() returns an openid.DefaultSession without subject set. It provides SetSubject to set the subject, but calling it still does not make the session have subject. It has to be set in IDTokenClaims as well.
Describe your ideal solution
session := openid.NewDefaultSession()
session.SetSubject(subject)
Should be enough.
Workarounds or alternatives
One currently has to set it manually:
session := openid.NewDefaultSession()
session.SetSubject(subject)
session.IDTokenClaims().Subject = subject
Version
v0.46.1-0.20240213123944-f38352921f22
Additional Context
No response
Preflight checklist
Ory Network Project
No response
Describe your problem
openid.Sessionrequires subject to be set.openid.NewDefaultSession()returns anopenid.DefaultSessionwithout subject set. It providesSetSubjectto set the subject, but calling it still does not make the session have subject. It has to be set inIDTokenClaimsas well.Describe your ideal solution
Should be enough.
Workarounds or alternatives
One currently has to set it manually:
Version
v0.46.1-0.20240213123944-f38352921f22
Additional Context
No response