Everyday takeaways
- A custom Auth0 signup screen loads its built files from a public CDN, so hosting belongs in the launch plan rather than in a cleanup after the screen goes live.
- The documented setup keeps the S3 bucket private and serves it through CloudFront with Origin Access Control.
- The screen's CDN URL should be the CloudFront domain, entered without a trailing slash.
- The machine-to-machine app needs five Management API permissions for the deployment, and every extra permission widens what that app can change.
- A dashboard status is not proof of privacy, so before launch, confirm while signed out that a file's direct S3 bucket address is refused and its CloudFront address loads.
TL;DR: Keep the bucket private behind CloudFront with Origin Access Control, point the screen at the CloudFront domain with no trailing slash, and grant the machine-to-machine app only the five permissions the deployment lists. Then open the live screen before the launch is called done.
The decision in front of you
A signup screen asset is one of the built files that a custom Auth0 signup screen loads from a CDN when someone signs up. Your developer decides where those files are stored and which access the deployment uses to publish them, and your job before launch is to confirm three settings rather than design the pipeline.
Auth0's overview says custom configuration files and assets must be hosted on a public CDN, and the deployment steps show one way to meet that rule with S3 and CloudFront, according to Auth0.
The options table sets the two supported setups beside the public bucket that this post treats as the first mistake.
| Setup | Who can read the files | Origin Access Control | Fits | Main trade-off |
|---|---|---|---|---|
| Private S3 bucket behind CloudFront | Visitors read through CloudFront; only CloudFront reads the bucket | Yes, on the CloudFront origin | Teams using Auth0's documented deployment | Setup weight across AWS and GitHub |
| Another public CDN | Set by that CDN's provider | Not covered in Auth0's steps | Teams that already run a public CDN | The developer designs the upload and access rules |
| Public S3 bucket with direct URLs | Anyone who has the address | Not used | Not a fit for a launch | Exposure risk, covered in mistake one |
If you are unsure who this is for
This is for growth leads who hand a custom Auth0 signup screen to a developer and need the hosting checks before it goes live. It is not a build guide. It names the three settings you should confirm and the values behind them.
Red flags: no one on your team can see the AWS account that will hold the bucket, the plan is to make the bucket public so the screen is easier to reach, or the launch date is fixed before anyone has opened the hosted screen.
Terms used in this comparison
- ACUL: Auth0's Advanced Customizations for Universal Login, the feature that lets a team deploy its own signup and login screens.
- Management API: Auth0's interface for changing tenant settings, which the deployment calls with an access token.
- Machine-to-machine app: an Auth0 application that calls the Management API without a signed-in user.
- S3 bucket: the AWS storage container that holds the built files.
- CloudFront: the AWS content delivery network that serves the bucket's files to visitors.
- Origin Access Control (OAC): the CloudFront setting that lets CloudFront read files from a private S3 bucket.
- Least privilege: the rule of granting an account only what it needs. NIST defines it as giving each entity the minimum system resources and authorizations it needs to perform its function, according to NIST.
Option one: a private bucket behind CloudFront
This setup fits a team whose developer can work in an AWS account and a GitHub repository, and who wants the path Auth0's deployment steps describe. The prerequisites include AWS permissions to create IAM roles and S3 buckets and to configure CloudFront, plus a GitHub repository that holds the custom screens.
Setup takes four moves: the developer creates the bucket with Block Public Access on, places CloudFront in front of it with Origin Access Control so CloudFront can read the private bucket, gives the deployment role write and delete access to that one bucket, and stores the bucket name, region, CloudFront domain and Auth0 values as repository secrets. The trade-off is setup weight, because four systems have to agree before the first push. The repository then carries the screen list and the deploy flags, which decide what reaches the live site.
Option two: another public CDN
This setup fits a team whose developer already runs a public CDN with a dependable upload path. The overview's rule names a public CDN rather than a specific provider, so a different CDN meets the stated requirement.
The trade-off is that Auth0's deployment steps describe S3 and CloudFront only. The developer must design the upload, the access rules and the screen URL setting for the other CDN, and must confirm how the origin stays private, because Auth0's steps do not describe an Origin Access Control equivalent.
Setup takes three moves: upload the built files to the CDN, point the screen settings at the CDN address with no trailing slash, and grant the machine-to-machine app the same Management API permissions. All three mistakes below apply to this setup as well.
Mistake one: a public bucket or no Origin Access Control
Mistake one is leaving the bucket readable by anyone with its address, or serving the files straight from storage without Origin Access Control. These screen files are public by design through CloudFront, so the real risk of a public bucket is direct reads that skip CloudFront and reach anything else stored in that bucket. That risk belongs at the top of the check list.
A dashboard status is not a direct test of who can read a file.
The fix has two parts. Keep Block Public Access on for the bucket and confirm that no bucket policy grants public reads. Then, in a browser that is not signed in, open each file's direct S3 bucket address, which should be refused, and its CloudFront address, which should load, because these requests test real access whatever a status panel reports.
Mistake two: a CDN URL with a trailing slash or the wrong address
Mistake two is entering the wrong address for the screen's assets. The deployment stores the CDN address in a repository secret called S3_CDN_URL, with the CloudFront domain as the value, and the address must not end in a trailing slash. The workflow then updates the Auth0 screen customization settings to point to your assets at CloudFront CDN, and the region secret takes a value such as us-east-1, according to Auth0.
A common wrong address is the bucket's own address. It looks plausible in a settings field, but it does not match the CloudFront setup the workflow writes. Compare the value with the CloudFront domain before the first push.
A second address problem sits in the browser. Once the files live on a domain other than the page's own, the browser treats the request as cross-origin. MDN says a web application can request resources only from the origin it was loaded from unless the other origin's response includes the right CORS headers, and the specific cause of a failure appears in the browser console, according to MDN Web Docs. Auth0's deployment steps do not say whether a hosted screen needs CORS headers on the CDN, so open the live screen and read the console for cross-origin errors.
Mistake three: a machine-to-machine app with the wrong permissions
Mistake three is giving the deployment's machine-to-machine app too few permissions or too many. The app must be authorized for the Auth0 Management API with five permissions, listed in the table below. The Management API needs an access token in each request, so an app without the grant has no way to make the calls the deployment needs.
| Area | Permissions to grant |
|---|---|
| Branding | read:branding, update:branding |
| Prompts | read:prompts, update:prompts |
| Custom domains | read:custom_domains |
Grant those five and no more. That is the least-privilege rule from the terms list, applied to Auth0 rather than to AWS. The AWS side follows the same rule: the GitHub Actions role needs put, delete and list rights on the one bucket, not on the account.
Check the deploy flags as well. The deploy config sets each screen to true to deploy it or false to skip it, so a screen missing from the live site may be marked false rather than broken.
Cost check: what the CloudFront plans include
Take a team whose developer is weighing CloudFront's flat-rate plans for the screen files. Business plan: 1TB included S3 storage according to Amazon Web Services, with 50TB of data transfer, while the Pro plan includes 50TB of data transfer and 50GB of S3 storage, and the Free plan costs $0/month with 1M requests and 5GB of included S3 storage. The developer should justify a larger plan with the screen's real storage and request needs before the plan is chosen.
The plan table repeats the included S3 storage, such as 1TB on Business, and adds the custom option, according to Amazon Web Services.
| Plan | Included S3 storage |
|---|---|
| Free | 5GB |
| Pro | 50GB |
| Business | 1TB |
| Custom | Not listed |
Final check before launch
Run this list before anyone calls the launch done.
- Bucket: Block Public Access stays on, and no bucket policy grants public reads.
- Origin: CloudFront reads the bucket through Origin Access Control.
- Screen address: the CDN setting is the CloudFront domain with no trailing slash.
- Permissions: the machine-to-machine app holds the five Management API permissions and no others.
- Screen list: each screen's deploy flag is set to true or false on purpose.
- Live test: in a browser that is not signed in, confirm that each file's direct S3 bucket address is refused and its CloudFront address loads, then open the live screen and read the console for cross-origin errors.
- Labels: each field shows a visible label.
FAQs
Does a custom Auth0 signup screen have to sit behind CloudFront?
No, because Auth0's overview requires a public CDN, and CloudFront in front of a private S3 bucket is the documented path rather than the only allowed one.
Can the bucket stay public if the screen already works?
No, because a working screen does not show who else can read the bucket, so the documented setup blocks public access and reads the bucket through Origin Access Control.
Why must the CDN URL have no trailing slash?
The deployment expects the CloudFront domain as the value, and Auth0 says not to add a trailing slash, so enter the value in exactly that form.
Which Management API permissions does the deployment need?
It needs five: read and update branding, read and update prompts, and read custom domains.
Is a private status in an AWS dashboard enough to confirm privacy?
No, because a dashboard status is not a direct test of access, so also use a browser that is not signed in to confirm that a file's direct S3 bucket address is refused and its CloudFront address loads.
Does the hosted screen need CORS headers?
Possibly, because the browser treats a request as cross-origin when the files come from a different domain, so read the browser console on the live screen for cross-origin errors.
How should I choose a CloudFront plan for the assets?
Compare each plan's included storage and request allowances against the screen's real storage and traffic, and start from the smallest plan whose allowances cover them.
Which hosting setup should you pick?
- If you want the setup Auth0 documents, pick the private S3 bucket behind CloudFront because the deployment steps are written for that path.
- If you already run a public CDN with an upload path, pick that CDN because Auth0's overview requires a public CDN for custom assets and does not name a provider.
- If you see the bucket open to anyone with its address, pick the private S3 bucket behind CloudFront because a public bucket is the first mistake this post covers.