admind

package
v0.0.0-...-c4b491b Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: GPL-3.0, GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginInfo

type LoginInfo struct {
	UserInfo UserInfo     `json:"user_info"`
	Token    oauth2.Token `json:"token"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func (*Server) Init

func (s *Server) Init()

func (*Server) Run

func (s *Server) Run()

func (*Server) SetupEndpoints

func (s *Server) SetupEndpoints(r *gin.Engine)

type Token

type Token struct {
	AccessToken      string   `json:"access_token"`
	ExpiresIn        int32    `json:"expires_in"`
	RefreshExpiresIn int32    `json:"refresh_expires_in"`
	RefreshToken     string   `json:"refresh_token"`
	TokenType        string   `json:"token_type"`
	IdToken          string   `json:"id_token"`
	Scope            []string `json:"scope"`
}

type UserInfo

type UserInfo struct {
	Sub               string   `json:"sub"`
	EmailVerified     string   `json:"email_verified"`
	Name              string   `json:"name"`
	Groups            []string `json:"groups"`
	PreferredUsername string   `json:"preferred_username"`
	GivenName         string   `json:"given_name"`
	FamilyName        string   `json:"family_name"`
	Email             string   `json:"email"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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