Documentation
¶
Index ¶
- func GeneratePolicyAction(claims map[string]interface{}) string
- func GetCSRDetails(privateKey *rsa.PrivateKey, ...) (string, error)
- func GetInstanceId(claims map[string]interface{}) (string, error)
- func GetOIDCToken(audience, harnessUrl string) (string, map[string]interface{}, error)
- type RequestBody
- type TokenAttrs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePolicyAction ¶
GeneratePolicyAction generates the action to be used in Athenz policies
func GetCSRDetails ¶
func GetCSRDetails(privateKey *rsa.PrivateKey, domain, service, provider, instanceId, dnsDomain, spiffeTrustDomain, subjC, subjO, subjOU string) (string, error)
GetCSRDetails generate certificate signing request details
func GetInstanceId ¶
GetInstanceId extracts the instance id from the claims
Types ¶
type RequestBody ¶
type RequestBody struct { AccountId string `json:"accountId,omitempty"` CustomAttrs TokenAttrs `json:"oidcIdTokenCustomAttributesStructure,omitempty"` }
Click to show internal directories.
Click to hide internal directories.