Know How Guide and Hands on Guide for AWS
https://github.com/okta/okta-oidc-aws
Setup the IAM web identity federation (OpenID Connect) and Okta
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"HEAD",
"GET",
"PUT",
"POST",
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": [
"x-amz-meta-custom-header",
"ETag"
],
"MaxAgeSeconds": 3000
}
]
Create an IAM OpenID Connect Provider Follow up the guide Creating OpenID Connect (OIDC) identity providers
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"s3:PutObject",
"s3:PutObjectAcl",
"s3:GetObject"
],
"Resource": [
"arn:aws-cn:s3:::YOUR_BUCKET_NAME/okta-${YOUR_OIDC_PROVIDER_URL:sub}/*"
],
"Effect": "Allow"
},
{
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws-cn:s3:::YOUR_BUCKET_NAME"
],
"Effect": "Allow",
"Condition": {
"StringEquals": {
"s3:prefix": "okta-${YOUR_OIDC_PROVIDER_URL:sub}"
}
}
}
]
}
git clone https://github.com/okta/okta-oidc-aws.git
cd okta-oidc-aws
vi sample.html
python3 -m http.server 8000
visit http://localhost:8000/sample.html