oidc

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmbedFS embed.FS

Functions

func GenerateCodeChallenge

func GenerateCodeChallenge(verifier string) (string, error)

GenerateCodeChallenge generates the S256 code challenge from the verifier.

func GenerateCodeVerifier

func GenerateCodeVerifier() (string, error)

GenerateCodeVerifier generates a securely random code verifier.

func StartOIDCServer

func StartOIDCServer(port uint16) error

Types

type CallbackPageInfo

type CallbackPageInfo struct {
	LoginType                 string
	ErrorTitle                string
	ErrorDescription          string
	AccountTokenResponse      *authentication.AccountManagementAuthenticationTokenResponse
	CustomerTokenResponse     *authentication.CustomerTokenResponse
	AccountTokenStructBase64  []string
	CustomerTokenStructBase64 string
}

func GetCallbackData

func GetCallbackData(ctx context.Context, port uint16, r *http.Request) (*CallbackPageInfo, error)

type LoginPageInfo

type LoginPageInfo struct {
	CustomerProfiles     []OidcProfileInfo
	CustomerClientId     string
	AccountProfiles      []OidcProfileInfo
	AccountClientId      string
	RedirectUriUnencoded string
	RedirectUriEncoded   string
	State                string
	CodeVerifier         string
	CodeChallenge        string
}

func GetIndexData

func GetIndexData(ctx context.Context, port uint16) (*LoginPageInfo, error)

type OidcProfileInfo

type OidcProfileInfo struct {
	Name              string `mapstructure:"name"`
	AuthorizationLink string `mapstructure:"authorization_link"`
	Idp               string
}

type TokenPageInfo

type TokenPageInfo struct {
	LoginType        string
	ErrorTitle       string
	ErrorDescription string
	Name             string
	Id               string
}

func GetTokenData

func GetTokenData(ctx context.Context, port uint16, r *http.Request) (*TokenPageInfo, error)

Jump to

Keyboard shortcuts

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