organized api packages into a unified constructor
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user