Skip to content

Commit

Permalink
Merge pull request #265 from qld-gov-au/qol-9116_add_sso_to_ckan
Browse files Browse the repository at this point in the history
Qol 9116 add sso to ckan
  • Loading branch information
duttonw authored Jul 20, 2022
2 parents 10c8717 + 89e87c1 commit a992f34
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions templates/cloudfront.cfn.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,72 @@ Resources:
LambdaFunctionAssociations:
- EventType: 'viewer-request'
LambdaFunctionARN: !Ref LambdaAtEdgeViewerRequestVersion
- PathPattern: /logout* #SSO
TargetOriginId: 'CmsOrigin'
AllowedMethods:
- GET
- HEAD
- OPTIONS
- PUT
- PATCH
- POST
- DELETE
Compress: true
DefaultTTL: 0
MaxTTL: 0
MinTTL: 0
ForwardedValues:
Cookies:
Forward: all
QueryString: true
Headers:
- "Accept"
- "Accept-Charset"
- "Accept-Datetime"
- "Accept-Encoding"
- "Accept-Language"
- "Authorization"
- "Origin"
- "Accept"
- "Host"
- "Referer"
ViewerProtocolPolicy: redirect-to-https
LambdaFunctionAssociations:
- EventType: 'viewer-request'
LambdaFunctionARN: !Ref LambdaAtEdgeViewerRequestVersion
- PathPattern: /oauth-account-manager* #SSO
TargetOriginId: 'CmsOrigin'
AllowedMethods:
- GET
- HEAD
- OPTIONS
- PUT
- PATCH
- POST
- DELETE
Compress: true
DefaultTTL: 0
MaxTTL: 0
MinTTL: 0
ForwardedValues:
Cookies:
Forward: all
QueryString: true
Headers:
- "Accept"
- "Accept-Charset"
- "Accept-Datetime"
- "Accept-Encoding"
- "Accept-Language"
- "Authorization"
- "Origin"
- "Accept"
- "Host"
- "Referer"
ViewerProtocolPolicy: redirect-to-https
LambdaFunctionAssociations:
- EventType: 'viewer-request'
LambdaFunctionARN: !Ref LambdaAtEdgeViewerRequestVersion
{% endif %}

- PathPattern: !Sub "/${AttachmentBucketName}/*" # S3 uploaded files
Expand Down

0 comments on commit a992f34

Please sign in to comment.