Documentation ¶
Index ¶
- Variables
- type ClaimSigner
- func (cs *ClaimSigner) ParseAdapterEditor(tenantId, payload string) (*claim.AdapterEditor, error)
- func (cs *ClaimSigner) ParseAdviseryTkt(tenantId, payload string) (*claim.AdviseryTkt, error)
- func (cs *ClaimSigner) ParseAutheFirst(tenantId, payload string) (*claim.AuthFirst, error)
- func (cs *ClaimSigner) ParseAutheNext(tenantId, payload string) (*claim.AuthNext, error)
- func (cs *ClaimSigner) ParseBprintTkt(tenantId, payload string) (*claim.BprintTkt, error)
- func (cs *ClaimSigner) ParseData(tenantId, payload string) (*claim.Data, error)
- func (cs *ClaimSigner) ParseExecModTkt(tenantId, payload string) (*claim.ExecModTkt, error)
- func (cs *ClaimSigner) ParseExecutor(tenantId, payload string) (*claim.Executor, error)
- func (cs *ClaimSigner) ParseFolder(tenantId, payload string) (*claim.Folder, error)
- func (cs *ClaimSigner) ParseOauthState(tenantId, payload string) (*claim.OauthState, error)
- func (cs *ClaimSigner) ParseOperator(payload string) (*claim.Operator, error)
- func (cs *ClaimSigner) ParsePlugDevTkt(tenantId, payload string) (*claim.PlugDevTkt, error)
- func (cs *ClaimSigner) ParsePlugState(tenantId, payload string) (*claim.PlugState, error)
- func (cs *ClaimSigner) ParsePreAuthed(tenantId, payload string) (*claim.PreAuthed, error)
- func (cs *ClaimSigner) ParseRoomTagTkt(tenantId, payload string) (*claim.RoomTagTkt, error)
- func (cs *ClaimSigner) ParseSession(tenantId, payload string) (*claim.Session, error)
- func (cs *ClaimSigner) ParseSite(payload string) (*claim.Site, error)
- func (cs *ClaimSigner) ParseSockdTkt(tenantId, payload string) (*claim.SockdTkt, error)
- func (cs *ClaimSigner) ParseUser(tenantId, payload string) (*claim.User, error)
- func (cs *ClaimSigner) ParseUserMgmtTkt(tenantId, payload string) (*claim.UserMgmtTkt, error)
- func (cs *ClaimSigner) SignAdapterEditor(tenantId string, data *claim.AdapterEditor) (string, error)
- func (cs *ClaimSigner) SignAdviseryTkt(tenantId string, data *claim.AdviseryTkt) (string, error)
- func (cs *ClaimSigner) SignAutheFirst(tenantId string, data *claim.AuthFirst) (string, error)
- func (cs *ClaimSigner) SignAutheNext(tenantId string, data *claim.AuthNext) (string, error)
- func (cs *ClaimSigner) SignBprintTkt(tenantId string, data *claim.BprintTkt) (string, error)
- func (cs *ClaimSigner) SignData(tenantId string, data *claim.Data) (string, error)
- func (cs *ClaimSigner) SignExecModTkt(tenantId string, data *claim.ExecModTkt) (string, error)
- func (cs *ClaimSigner) SignExecutor(tenantId string, data *claim.Executor) (string, error)
- func (cs *ClaimSigner) SignFolder(tenantId string, data *claim.Folder) (string, error)
- func (cs *ClaimSigner) SignOauthState(tenantId string, data *claim.OauthState) (string, error)
- func (cs *ClaimSigner) SignOperator(data *claim.Operator) (string, error)
- func (cs *ClaimSigner) SignPlugDevTkt(tenantId string, data *claim.PlugDevTkt) (string, error)
- func (cs *ClaimSigner) SignPlugState(tenantId string, data *claim.PlugState) (string, error)
- func (cs *ClaimSigner) SignPreAuthed(tenantId string, data *claim.PreAuthed) (string, error)
- func (cs *ClaimSigner) SignRoomTagTkt(tenantId string, data *claim.RoomTagTkt) (string, error)
- func (cs *ClaimSigner) SignSession(tenantId string, data *claim.Session) (string, error)
- func (cs *ClaimSigner) SignSite(data *claim.Site) (string, error)
- func (cs *ClaimSigner) SignSockdTkt(tenantId string, data *claim.SockdTkt) (string, error)
- func (cs *ClaimSigner) SignUser(tenantId string, data *claim.User) (string, error)
- func (cs *ClaimSigner) SignUserMgmtTkt(tenantId string, data *claim.UserMgmtTkt) (string, error)
- type Signer
- func (a *Signer) GlobalParseRaw(token string) (string, error)
- func (a *Signer) GlobalSignRaw(payload string) (string, error)
- func (a *Signer) Parse(namespace string, token string, target any) error
- func (a *Signer) ParseRaw(namespace string, token string) (string, error)
- func (a *Signer) Sign(namespace string, payload any) (string, error)
- func (a *Signer) SignRaw(namespace string, payload string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrWrongTenant = errors.New("wrong tenant")
)
Functions ¶
This section is empty.
Types ¶
type ClaimSigner ¶
type ClaimSigner struct {
// contains filtered or unexported fields
}
func New ¶
func New(key []byte, salt string) *ClaimSigner
func (*ClaimSigner) ParseAdapterEditor ¶
func (cs *ClaimSigner) ParseAdapterEditor(tenantId, payload string) (*claim.AdapterEditor, error)
func (*ClaimSigner) ParseAdviseryTkt ¶
func (cs *ClaimSigner) ParseAdviseryTkt(tenantId, payload string) (*claim.AdviseryTkt, error)
func (*ClaimSigner) ParseAutheFirst ¶
func (cs *ClaimSigner) ParseAutheFirst(tenantId, payload string) (*claim.AuthFirst, error)
func (*ClaimSigner) ParseAutheNext ¶
func (cs *ClaimSigner) ParseAutheNext(tenantId, payload string) (*claim.AuthNext, error)
func (*ClaimSigner) ParseBprintTkt ¶
func (cs *ClaimSigner) ParseBprintTkt(tenantId, payload string) (*claim.BprintTkt, error)
func (*ClaimSigner) ParseData ¶
func (cs *ClaimSigner) ParseData(tenantId, payload string) (*claim.Data, error)
func (*ClaimSigner) ParseExecModTkt ¶
func (cs *ClaimSigner) ParseExecModTkt(tenantId, payload string) (*claim.ExecModTkt, error)
func (*ClaimSigner) ParseExecutor ¶
func (cs *ClaimSigner) ParseExecutor(tenantId, payload string) (*claim.Executor, error)
func (*ClaimSigner) ParseFolder ¶
func (cs *ClaimSigner) ParseFolder(tenantId, payload string) (*claim.Folder, error)
func (*ClaimSigner) ParseOauthState ¶
func (cs *ClaimSigner) ParseOauthState(tenantId, payload string) (*claim.OauthState, error)
func (*ClaimSigner) ParseOperator ¶
func (cs *ClaimSigner) ParseOperator(payload string) (*claim.Operator, error)
func (*ClaimSigner) ParsePlugDevTkt ¶
func (cs *ClaimSigner) ParsePlugDevTkt(tenantId, payload string) (*claim.PlugDevTkt, error)
func (*ClaimSigner) ParsePlugState ¶
func (cs *ClaimSigner) ParsePlugState(tenantId, payload string) (*claim.PlugState, error)
func (*ClaimSigner) ParsePreAuthed ¶
func (cs *ClaimSigner) ParsePreAuthed(tenantId, payload string) (*claim.PreAuthed, error)
func (*ClaimSigner) ParseRoomTagTkt ¶
func (cs *ClaimSigner) ParseRoomTagTkt(tenantId, payload string) (*claim.RoomTagTkt, error)
func (*ClaimSigner) ParseSession ¶
func (cs *ClaimSigner) ParseSession(tenantId, payload string) (*claim.Session, error)
func (*ClaimSigner) ParseSite ¶
func (cs *ClaimSigner) ParseSite(payload string) (*claim.Site, error)
func (*ClaimSigner) ParseSockdTkt ¶
func (cs *ClaimSigner) ParseSockdTkt(tenantId, payload string) (*claim.SockdTkt, error)
func (*ClaimSigner) ParseUser ¶
func (cs *ClaimSigner) ParseUser(tenantId, payload string) (*claim.User, error)
func (*ClaimSigner) ParseUserMgmtTkt ¶
func (cs *ClaimSigner) ParseUserMgmtTkt(tenantId, payload string) (*claim.UserMgmtTkt, error)
func (*ClaimSigner) SignAdapterEditor ¶
func (cs *ClaimSigner) SignAdapterEditor(tenantId string, data *claim.AdapterEditor) (string, error)
func (*ClaimSigner) SignAdviseryTkt ¶
func (cs *ClaimSigner) SignAdviseryTkt(tenantId string, data *claim.AdviseryTkt) (string, error)
func (*ClaimSigner) SignAutheFirst ¶
func (*ClaimSigner) SignAutheNext ¶
func (*ClaimSigner) SignBprintTkt ¶
func (*ClaimSigner) SignExecModTkt ¶
func (cs *ClaimSigner) SignExecModTkt(tenantId string, data *claim.ExecModTkt) (string, error)
func (*ClaimSigner) SignExecutor ¶
func (*ClaimSigner) SignFolder ¶
func (*ClaimSigner) SignOauthState ¶
func (cs *ClaimSigner) SignOauthState(tenantId string, data *claim.OauthState) (string, error)
func (*ClaimSigner) SignOperator ¶
func (cs *ClaimSigner) SignOperator(data *claim.Operator) (string, error)
func (*ClaimSigner) SignPlugDevTkt ¶
func (cs *ClaimSigner) SignPlugDevTkt(tenantId string, data *claim.PlugDevTkt) (string, error)
func (*ClaimSigner) SignPlugState ¶
func (*ClaimSigner) SignPreAuthed ¶
func (*ClaimSigner) SignRoomTagTkt ¶
func (cs *ClaimSigner) SignRoomTagTkt(tenantId string, data *claim.RoomTagTkt) (string, error)
func (*ClaimSigner) SignSession ¶
func (*ClaimSigner) SignSockdTkt ¶
func (*ClaimSigner) SignUserMgmtTkt ¶
func (cs *ClaimSigner) SignUserMgmtTkt(tenantId string, data *claim.UserMgmtTkt) (string, error)
Click to show internal directories.
Click to hide internal directories.