AuthN: Move oauthserver to extsvcauth (#75972)

* AuthN: Move oauthserver to extsvcauth

* Codeowners
This commit is contained in:
Gabriel MABILLE
2023-10-04 16:53:17 +02:00
committed by GitHub
parent 40cdb30336
commit 193ec8de2b
26 changed files with 26 additions and 25 deletions
@@ -0,0 +1,16 @@
package oasimpl
import (
"github.com/ory/fosite/handler/oauth2"
"github.com/ory/fosite/token/jwt"
)
func NewAuthSession() *oauth2.JWTSession {
sess := &oauth2.JWTSession{
JWTClaims: new(jwt.JWTClaims),
JWTHeader: new(jwt.Headers),
}
// Our tokens will follow the RFC9068
sess.JWTHeader.Add("typ", "at+jwt")
return sess
}