Open riadevatix opened 2 years ago
I did like you, but I had to build a new session type to pass when creating a session on fosite. Its a jwtsession and an openid one:
type OpenIDJWTSession struct {
openid.DefaultSession
}
func (s *OpenIDJWTSession) GetJWTClaims() jwt.JWTClaimsContainer {
claims := &jwt.JWTClaims{}
if s.Claims != nil {
claims.FromMapClaims(s.Claims.ToMapClaims())
}
return claims
}
func (s *OpenIDJWTSession) GetJWTHeader() *jwt.Headers {
return s.IDTokenHeaders()
}
func NewOpenIDJWTSession() *OpenIDJWTSession {
return &OpenIDJWTSession{
*openid.NewDefaultSession(),
}
}
there are some tipe casts inside the handlers and I had to create it. I need to review the code, claims and headers to make sure it's not buggy
Hi, I've tried this but got the error. Can anyone tell me what am I missing here?
NOTE : I only changed this portion of the code.
Got this error: