runway_auth

package module
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: GPL-3.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 DeleteAuth added in v0.2.11

func DeleteAuth(ctx context.Context, id string) 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