authservice

package
v0.0.0-...-fb83055 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(tokenCfg domain.Token, roleRepo domain.RoleRepository, userClient userPB.UserClient) *service

Types

type Auth

type Auth interface {
	GenerateOauth2Token(ctx context.Context, userId string, scope []string, extra map[string]interface{}) (token oauth2.Token, err error)
	ParseJwtToken(tokenStr string) (tokenInfo domain.DebugTokenInfo, err error)
	HasAccessTo(ctx context.Context, roles []string, permission domain.Permission) (ok bool, err error)
}

Directories

Path Synopsis
repositories

Jump to

Keyboard shortcuts

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