Documentation ¶
Index ¶
Constants ¶
View Source
const IssuerURLTemplate = "https://oidc.circleci.com/org/%s"
Variables ¶
This section is empty.
Functions ¶
func GetIDToken ¶
Types ¶
type IDTokenClaims ¶
type IDTokenClaims struct { // Sub identifies who is running the CircleCI job and where. // In the format of: `org/ORGANIZATION_ID/project/PROJECT_ID/user/USER_ID` Sub string `json:"sub"` // ContextIDs is a list of UUIDs for the contexts used in the job. ContextIDs []string `json:"oidc.circleci.com/context-ids"` // ProjectID is the ID of the project in which the job is running. ProjectID string `json:"oidc.circleci.com/project-id"` }
IDTokenClaims is the structure of claims contained with a CircleCI issued ID token. See https://circleci.com/docs/openid-connect-tokens/
func ValidateToken ¶
func (*IDTokenClaims) JoinAuditAttributes ¶
func (c *IDTokenClaims) JoinAuditAttributes() (map[string]interface{}, error)
JoinAuditAttributes returns a series of attributes that can be inserted into audit events related to a specific join.
Click to show internal directories.
Click to hide internal directories.