Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrCannotFindValidConfiguration = isauth.ErrCannotFindValidConfiguration ErrCannotRunQuery = isauth.ErrCannotRunQuery ErrWrongPassword = isauth.ErrWrongPassword ErrUserNotFound = isauth.ErrUserNotFound ErrCannotReadUserDocument = isauth.ErrCannotReadUserDocument ErrCannotReadUserCredentials = isauth.ErrCannotReadUserCredentials ErrEmailDouble = isauth.ErrEmailDouble ErrUnexpectedError = isauth.ErrUnexpectedError ErrMissingEmail = isauth.ErrMissingEmail ErrMissingPassword = isauth.ErrMissingPassword ErrEmailTooLong = isauth.ErrEmailTooLong ErrPasswordTooLong = isauth.ErrPasswordTooLong ErrWrongEmailFormat = isauth.ErrWrongEmailFormat ErrCannotHashPassword = isauth.ErrCannotHashPassword )
View Source
const ( ErrMissingClusterUsername = isconf.ErrMissingClusterUsername ErrMissingClusterPassword = isconf.ErrMissingClusterPassword ErrMissingUsersDBName = isconf.ErrMissingUsersDBName ErrCannotAccessCluster = isconf.ErrCannotAccessCluster )
View Source
const ( ErrUnexpectedKey = isginerrors.ErrUnexpectedKey ErrMissingParser = isginerrors.ErrMissingParser ErrNoCredentials = isginerrors.ErrNoCredentials )
View Source
const ( GinParseErrorKey = isginutils.GinParseError GinAuthErrorKey = isginutils.GinAuthError GinAuthDataKey = isginutils.GinAuthData )
Variables ¶
View Source
var Middlewares = struct { Authenticate func(userDocument reflect.Type, opts isginstructs.AuthOptions) func(c *gin.Context) }{ Authenticate: isgin.Auth, }
View Source
var MiddlewaresUtils = struct { CheckAuthStatus func(c *gin.Context) (*errors.Error, *errors.Error, *errors.Error) }{ CheckAuthStatus: isginutils.CheckAuthStatus, }
Functions ¶
Types ¶
type AuthOptions ¶
type AuthOptions = isginstructs.AuthOptions
type Authentication ¶
type Authentication = isauth.Authentication
type EncryptConfig ¶
type EncryptConfig = isauth.EncryptConfig
type UnencryptedAuthentication ¶
type UnencryptedAuthentication = isauth.UnencryptedAuthentication
Click to show internal directories.
Click to hide internal directories.