Documentation
¶
Index ¶
- func CheckAuthWithProvider(ctx context.Context, token string) (bool, error)
- func GetACIUseCase() domain.ACIUseCase
- func GetAuthUseCase() domain.AuthUseCase
- func InitGoogleProvider(ctx context.Context, firebaseAdminConfigName string)
- func Initialize(configFileName string, authDialector InitDialetor, aciDialector InitDialetor, ...)
- func SignIn(ctx context.Context, username, password string) (token *domain.Token, err error)
- func SignInWithProvider(ctx context.Context, token string) (genToken *domain.Token, err error)
- func SignUp(ctx context.Context, auth *domain.Auth) error
- func SignUpWithProvider(ctx context.Context, token string) error
- func VerifyToken(ctx context.Context, token string) (auth *domain.Auth, err error)
- func VerifyTokenAndPerm(ctx context.Context, token, resource, payload string) error
- type InitDialetor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAuthWithProvider ¶ added in v0.1.7
func GetACIUseCase ¶
func GetACIUseCase() domain.ACIUseCase
func GetAuthUseCase ¶
func GetAuthUseCase() domain.AuthUseCase
func InitGoogleProvider ¶
func Initialize ¶
func Initialize(configFileName string, authDialector InitDialetor, aciDialector InitDialetor, setConfig bool)
func SignInWithProvider ¶
func SignUpWithProvider ¶ added in v0.1.4
func VerifyToken ¶ added in v0.1.12
Types ¶
type InitDialetor ¶
Click to show internal directories.
Click to hide internal directories.