Skip to content

credctl oidc publish

Synopsis

Terminal window
credctl oidc publish [flags]

Description

credctl oidc publish uploads the OIDC discovery document and JWKS from ~/.credctl/oidc/ to an S3 bucket. The bucket serves as the backing store for the CloudFront distribution that acts as the OIDC issuer URL.

Files uploaded:

  • s3://<bucket>/.well-known/openid-configuration (Content-Type: application/json)
  • s3://<bucket>/keys.json (Content-Type: application/json)

Flags

FlagTypeDefaultDescription
--bucketstringS3 bucket name to publish to. Required.
--regionstringus-east-1AWS region of the S3 bucket.

Examples

Publish OIDC documents

Terminal window
credctl oidc publish --bucket credctl-oidc-123456789012 --region us-east-1
Uploading OIDC discovery document...
Uploading JWKS...
OIDC documents published to S3.

Exit codes

CodeMeaning
0OIDC documents published successfully
1Error (documents not generated, S3 upload failure, or other error)

See also