app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(option Option) error

Types

type AuthRequestParams

type AuthRequestParams struct {
	ClientID    string
	RedirectURI string
	Scopes      []string
}

type Config

type Config struct {
	GrantType     string              `yaml:"grant_type"`
	Login         Login               `yaml:"login"`
	ClientID      string              `yaml:"client_id"`
	ClientSecret  string              `yaml:"client_secret"`
	RedirectURI   string              `yaml:"redirect_uri"`
	AuthEndpoint  string              `yaml:"authorization_endpoint"`
	TokenEndpoint string              `yaml:"token_endpoint"`
	PrivateKeyJwt PrivateKeyJwtConfig `yaml:"private_key_jwt"`
	Scopes        []string            `yaml:"scopes"`
}

type JWTClaim

type JWTClaim struct {
	Audience string `yaml:"audience"`
}

type Login

type Login struct {
	AuthInfo      string `yaml:"auth_info"`
	LoginEndpoint string `yaml:"login_endpoint"`
}

type Option

type Option struct {
	ConfigFile string
	ConfigSet  string
	RawOutput  bool
	Version    bool
}

type PrivateKeyJwtConfig

type PrivateKeyJwtConfig struct {
	JWTClaims JWTClaim `yaml:"jwt_claims"`
	Alg       string   `yaml:"algorithm"`
	Key       string   `yaml:"key"`
}

type RedirectParams

type RedirectParams struct {
	Code  string
	State string
	Error error
}

type TokenResponse

type TokenResponse struct {
	AccessToken string `json:"access_token"`
	TokenType   string `json:"token_type"`
	ExpiresIn   int64  `json:"expires_in"`
}

Jump to

Keyboard shortcuts

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