authservice

package
v0.0.0-...-bd520fb Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultClusterId int64 = 0
	DefaultGroupId   int64 = 0
	DefaultUserId    int64 = 0
)

Variables

View Source
var JwtSecretKey string

Functions

This section is empty.

Types

type AiArtsAuthtication

type AiArtsAuthtication struct {
}

func (AiArtsAuthtication) AuthMethod

func (a AiArtsAuthtication) AuthMethod(auth string) (*protocol.ApulisHeader, error)

func (AiArtsAuthtication) Init

func (AiArtsAuthtication) ParseToken

func (a AiArtsAuthtication) ParseToken(token string) (*Claim, error)

type Claim

type Claim struct {
	Uid      int    `json:"uid"`
	UserName string `json:"userName"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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