resolvers

package
v0.0.0-...-42baaad Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOAuthConfig

func GetOAuthConfig(rc *rest.Config, name string) (*oauthv1alpha1.OAuthConfig, error)

func LDAPConfigGet

func LDAPConfigGet(rc *rest.Config, name string) (*ldapv1alpha1.LDAPConfig, error)

func LDAPConfigList

func LDAPConfigList(rc *rest.Config) (*ldapv1alpha1.LDAPConfigList, error)

func OIDCConfigGet

func OIDCConfigGet(rc *rest.Config, name string) (*oidcv1alpha1.OIDCConfig, error)

func OIDCConfigList

func OIDCConfigList(rc *rest.Config) (*oidcv1alpha1.OIDCConfigList, error)

func UserGet

func UserGet(rc *rest.Config, name string) (*basicv1alpha1.User, error)

func UserList

func UserList(rc *rest.Config) ([]*basicv1alpha1.UserSpec, error)

Types

type ConfigSpec

type ConfigSpec struct {
	// Kind of CRD
	Kind string `json:"kind"`

	// Name of the CRD instance with all the specs
	Name string `json:"name"`

	// AuthCodeURL: oauth2 provider authorization code URL
	AuthCodeURL string `json:"authCodeURL"`

	// RedirectURL is the URL to redirect users going through
	// the OAuth flow, after the resource owner's URLs.
	RedirectURL string `json:"redirectURL"`

	// LoginRoute path of the login handler
	LoginRoute string `json:"loginRoute"`

	// Graphics frontend options
	Graphics *core.Graphics `json:"graphics"`
}

func ListOAuthConfigs

func ListOAuthConfigs(dyn dynamic.Interface) ([]*ConfigSpec, error)

type DiscoveryEndpointResponse

type DiscoveryEndpointResponse struct {
	Authorization_endpoint string `json:"authorization_endpoint"`
	Token_endpoint         string `json:"token_endpoint"`
	Userinfo_endpoint      string `json:"userinfo_endpoint"`
}

Jump to

Keyboard shortcuts

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