Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

cloudblcks/cloudblocks-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudblocks Credentials Generator Go SDK

Authentication

To authenticate with Cloudblocks Credentials Generator Go SDK provide username and password as parameters when initialising the client:

client, err := cloudblocks_go.NewClient(username, password)

If you need to specify a custom base API URL (for example for testing purposes), provide it as a third parameter:

client, err := cloudblocks_go.NewClient(username, password, apiURL)

Usage

To request credentials, provide originId (ResourceID of the resource that requests access, typically the entity that is running the code) and targetId (ResourceID of the resource that you need to access):

creds, err := client.RequestCredentials(originId, targetId)

If there is an Access Role assigned to the origin resource that allows access to the target resource, credentials will be returned. Alternatively an error will be returned.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages