runway_auth

package module
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuthWithProvider added in v0.1.7

func CheckAuthWithProvider(ctx context.Context, token string) (bool, error)

func GetACIUseCase

func GetACIUseCase() domain.ACIUseCase

func GetAuthUseCase

func GetAuthUseCase() domain.AuthUseCase

func InitGoogleProvider

func InitGoogleProvider(ctx context.Context, firebaseAdminConfigName string)

func Initialize

func Initialize(configFileName string, authDialector InitDialetor, aciDialector InitDialetor, setConfig bool)

func SignIn

func SignIn(ctx context.Context, username, password string) (token *domain.Token, err error)

func SignInWithProvider

func SignInWithProvider(ctx context.Context, token string) (genToken *domain.Token, err error)

func SignUp

func SignUp(ctx context.Context, auth *domain.Auth) error

func SignUpWithProvider added in v0.1.4

func SignUpWithProvider(ctx context.Context, token string) error

func VerifyToken added in v0.1.12

func VerifyToken(ctx context.Context, token string) (auth *domain.Auth, err error)

func VerifyTokenAndPerm

func VerifyTokenAndPerm(ctx context.Context, token, resource, payload string) error

Types

type InitDialetor

type InitDialetor func() gorm.Dialector

Directories

Path Synopsis
internal
jwt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL