auth

package
v0.0.0-...-6fd7e0b Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClaimAuthorityId = "authorityId"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ASecurityUser

type ASecurityUser struct {
	Path          string
	Method        string
	AuthorityName string
}

func NewSecurityUser

func NewSecurityUser() *ASecurityUser

func (*ASecurityUser) CreateAccessJwtToken

func (su *ASecurityUser) CreateAccessJwtToken(secretKey []byte) string

func (*ASecurityUser) GetAction

func (su *ASecurityUser) GetAction() string

func (*ASecurityUser) GetObject

func (su *ASecurityUser) GetObject() string

func (*ASecurityUser) GetSubject

func (su *ASecurityUser) GetSubject() string

func (*ASecurityUser) ParseAccessJwtToken

func (su *ASecurityUser) ParseAccessJwtToken(claims jwtV4.Claims) error

func (*ASecurityUser) ParseAccessJwtTokenFromContext

func (su *ASecurityUser) ParseAccessJwtTokenFromContext(ctx context.Context) error

func (*ASecurityUser) ParseAccessJwtTokenFromString

func (su *ASecurityUser) ParseAccessJwtTokenFromString(token string, secretKey []byte) error

func (*ASecurityUser) ParseFromContext

func (su *ASecurityUser) ParseFromContext(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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