server

package
v0.0.0-...-e016302 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServer

func RunServer(ctx context.Context, c *cli.Context, provider *oidc.Provider, idTokenVerifier *oidc.IDTokenVerifier, oauth2Config oauth2.Config, state string) error

Types

type ApplicationHanlder

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

func (ApplicationHanlder) ServeHTTP

func (a ApplicationHanlder) ServeHTTP(w http.ResponseWriter, r *http.Request)

type AuthorizationResponse

type AuthorizationResponse struct {
	AccessToken  string `json:"access_token"`
	IDToken      string `json:"id_token"`
	ExpiresAt    int64  `json:"expires_at"`
	RefreshToken string `json:"refresh_token"`
}

type ErrorResponse

type ErrorResponse struct {
	Error   string `json:"error"`
	Message string `json:"message"`
}

type UserClaimsJWT

type UserClaimsJWT struct {
	AtHash        string `json:"at_hash"`
	Aud           string `json:"aud"`
	Email         string `json:"email"`
	EmailVerified bool   `json:"email_verified"`
	Iat           int    `json:"iat"`
	Iss           string `json:"iss"`
	Name          string `json:"name"`
	Sub           string `json:"sub"`
}

Jump to

Keyboard shortcuts

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