organized api packages into a unified constructor

This commit is contained in:
2026-01-24 13:12:54 -07:00
parent d6d0bf1b4c
commit e0597b31e8
4 changed files with 71 additions and 33 deletions
+4
View File
@@ -49,6 +49,10 @@ func NewAuth(
}
}
func (a *Auth) GetAuthenticator() *authentication.Authenticator {
return a.auth
}
// Identify will add an Identity to the context that can then be retrieved via GetIdentity.
func (a *Auth) Identify(c *gin.Context) {
if err := a.addIdentity(c); err != nil {