oauthclient

package
v0.0.0-...-0ec9d85 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomApplyOAuth

func CustomApplyOAuth(client oauthclient.OAuthClientsGetter, required *oauthv1.OAuthClient, ctx context.Context) (*oauthv1.OAuthClient, bool, error)

TODO: ApplyOauth should be a generic Apply that could be used for any oauth-client

  • should look like resourceapply.ApplyService and the other Apply funcs once its in a trustworthy state, PR to library-go so it can live with the other Apply funcs

func DeRegisterConsoleFromOAuthClient

func DeRegisterConsoleFromOAuthClient(client *oauthv1.OAuthClient) *oauthv1.OAuthClient

for ManagementState.Removed Console does not have create/delete priviledges on oauth clients, only update

func DefaultOauthClient

func DefaultOauthClient() *oauthv1.OAuthClient

func GetRedirectURIs

func GetRedirectURIs(client *oauthv1.OAuthClient) []string

func GetSecretString

func GetSecretString(client *oauthv1.OAuthClient) string

func RegisterConsoleToOAuthClient

func RegisterConsoleToOAuthClient(client *oauthv1.OAuthClient, host string, randomBits string) *oauthv1.OAuthClient

registers the console on the oauth client as a valid application

func SetRedirectURI

func SetRedirectURI(client *oauthv1.OAuthClient, host string) *oauthv1.OAuthClient

we are the only application for this client in the future we may accept multiple routes for now, we can clobber the slice & reset the entire thing

func SetSecretString

func SetSecretString(client *oauthv1.OAuthClient, randomBits string) *oauthv1.OAuthClient

func Stub

func Stub() *oauthv1.OAuthClient

Types

This section is empty.

Jump to

Keyboard shortcuts

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