sso

package
v0.0.0-...-f66dc53 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *http.Client
View Source
var SSOAuthenticator *goesi.SSOAuthenticator

Functions

func AuthContext

func AuthContext(ut UserToken) (c context.Context)

func Load

func Load(id string, key string)

func UpdateToken

func UpdateToken(char int32, tkn *oauth2.Token) (err error)

Types

type DiscordUser

type DiscordUser struct {
	CharacterId int32  `json:"characterid"`
	DiscordId   string `json:"discordid"`
}

type UserToken

type UserToken struct {
	CharacterId int32         `json:"characterid"`
	Token       *oauth2.Token `json:"token"`
}

func GetTokenForDiscordUser

func GetTokenForDiscordUser(userID string) (ut UserToken, err error)

Jump to

Keyboard shortcuts

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