auth

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0

README

Auth module

Module provides useful helper functions for authentication in the RHOAS SDKs.

Example

 offlineToken := os.Getenv("OFFLINE_TOKEN")
 httpClient := rhoasAuth.BuildAuthenticatedHTTPClient(offlineToken)

 ctx := context.Background()

 client := kafkamgmt.NewAPIClient(&kafkamgmt.Config{
  HTTPClient: httpClient,
 })

 _, _, err := client.DefaultApi.GetKafkas(ctx).Execute()
 if err != nil {
  panic(err)
 }

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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