utils

package
v0.0.0-...-3145a01 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAuthzApiClient

func CreateAuthzApiClient(authzApiUrl, clientID, clientSecret, issuerURL string) *authzapiv1.APIClient

Create a new instance of authzapiv1.APIClient which uses OAuth2 client credentials for authentication

func CreateAuthzApiClientFromEnv

func CreateAuthzApiClientFromEnv() (*authzapiv1.APIClient, error)

CreateAuthzApiClientFromEnv is a convience wrapper around CreateAuthzApiClient which loads the necessary config parameters from the following environment variables: - AUTHZAPI_URL - KC_ISSUER_URL - KC_CLIENT_ID - KC_CLIENT_SECRET

Types

This section is empty.

Jump to

Keyboard shortcuts

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