auth

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Basic

func Basic(cli *cli.Command) (amqpUrl *url.URL, err error)

func OAuth2

func OAuth2(cli *cli.Command) (amqpUrl *url.URL, err error)

func ValidateAMQPScheme added in v0.21.0

func ValidateAMQPScheme(amqpUrl *url.URL) error

ValidateAMQPScheme ensures the URL uses amqp:// or amqps:// as promised by the --url flag help text. It must be called right after parsing the URL and before the URL is used to dial or to derive other URLs, so a typo'd scheme fails fast instead of falling through to insecure defaults.

Types

type OAuthConfig

type OAuthConfig struct {
	OAuthEnabled          bool                            `json:"oauth_enabled"`
	OAuthResourceServers  map[string]*OAuthResourceServer `json:"oauth_resource_servers"`
	OAuthDisableBasicAuth bool                            `json:"oauth_disable_basic_auth"`
	OAuthClientID         string                          `json:"oauth_client_id"`
	OAuthScopes           string                          `json:"oauth_scopes"`
}

type OAuthResourceServer

type OAuthResourceServer struct {
	ID               string `json:"id"`
	OAuthProviderURL string `json:"oauth_provider_url"`
}

type OpenidConfiguration

type OpenidConfiguration struct {
	AuthorizationEndpoint string `json:"authorization_endpoint"`
	TokenEndpoint         string `json:"token_endpoint"`
}

Jump to

Keyboard shortcuts

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