You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resource-specific-documentation.md
+59-60Lines changed: 59 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,32 +10,13 @@ The Deploy CLI's own client grant is intentionally not exported nor configurable
10
10
11
11
## Prompts
12
12
13
-
Multilingual custom text prompts follow a particular hierarchy. Under the root-level `prompts`resource property is a proprietary `customText` property that is used to bundle custom text translations with other prompts settings. Underneath `customText` is the two-character language code. Thirdly is the prompt ID, followed by the screen ID, followed by text ID.
13
+
The prompts resource allows you to configure Universal Login pages, including custom text, custom HTML partials, and screen renderers.
14
14
15
-
RenderSettings of a prompt-screen follow a particular hierarchy. Under the root-level `prompts` we store `screenRenderers` property that is used to configure the rendering settings of a given prompt & screen. Thirdly is the prompt Name, followed by the screen Name mapped to the respective renderer configs file. Refer [more](https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens) on this.
15
+
**Custom Text**: Multilingual text translations follow a hierarchy - language code → prompt ID → screen ID → text ID.
16
16
17
-
Custom partials allow you to inject custom HTML (via Liquid templates) into specific insertion points of a prompt screen. Under `partials` is the prompt type, then the screen type, then the insertion point name mapped to the Liquid HTML content.
17
+
**Partials**: Custom HTML that can be injected at specific insertion points in prompts.
18
18
19
-
**Hierarchy**
20
-
21
-
```yaml
22
-
prompts:
23
-
identifier_first: true|false
24
-
universal_login_experience: new|classic
25
-
webauthn_platform_first_factor: true|false
26
-
customText:
27
-
<LANGUAGE>: # two character language code
28
-
<PROMPT_ID>: # prompt ID
29
-
<SCREEN_ID>: # prompt screen ID
30
-
<TEXT_ID>: 'Some text'
31
-
partials:
32
-
<PROMPT_TYPE>: # e.g. login, signup
33
-
<SCREEN_TYPE>: # e.g. login, signup
34
-
<INSERTION_POINT>: 'Liquid HTML content'# e.g. form-content-start, form-content-end
35
-
screenRenderers:
36
-
- <PROMPT-NAME>:
37
-
<SCREEN-NAME>: ./prompts/screenRenderSettings/promptName_screenName.json #Add the renderer configs for a given prompt & a given screen
38
-
```
19
+
**Screen Renderers**: Configure rendering settings for specific prompt-screen combinations. Refer to the [Advanced Customizations documentation](https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens) for more details.
39
20
40
21
**YAML Example**
41
22
@@ -48,13 +29,9 @@ Folder structure when in YAML mode.
@@ -110,10 +85,11 @@ Folder structure when in directory mode.
110
85
/login
111
86
/login
112
87
/form-content-start.liquid
113
-
/signup
114
-
/signup
88
+
/passkeys
89
+
/passkeys-enrollment
115
90
/form-content-start.liquid
116
-
/form-content-end.liquid
91
+
/passkeys-enrollment-local
92
+
/form-footer-end.liquid
117
93
/screenRenderSettings
118
94
/signup-id_signup-id.json
119
95
/login-id_login-id.json
@@ -125,9 +101,29 @@ Folder structure when in directory mode.
125
101
/partials.json
126
102
/prompts.json
127
103
```
128
-
129
104
In directory mode, `partials.json` is a manifest that maps each insertion point to its `.liquid` file (paths are relative to the `prompts/` directory):
130
105
106
+
Contents of `custom-text.json`:
107
+
108
+
```json
109
+
{
110
+
"en": {
111
+
"login": {
112
+
"login": {
113
+
"description": "Login description in english",
114
+
"buttonText": "Button text"
115
+
}
116
+
},
117
+
"passkeys": {
118
+
"passkey-enrollment": {
119
+
"title": "Create a passkey for ${clientName}",
120
+
"createButtonText": "Create a passkey"
121
+
}
122
+
}
123
+
}
124
+
}
125
+
```
126
+
131
127
Contents of `partials.json`:
132
128
133
129
```json
@@ -142,16 +138,18 @@ Contents of `partials.json`:
`Skipping partials for prompt type '${unavailablePrompt}' because it is not available on this tenant.`
455
+
);
456
+
returnnull;
457
+
}
458
+
}
459
+
433
460
if(error&&error.statusCode===429){
434
461
log.error(
435
462
`The global rate limit has been exceeded, resulting in a ${error.statusCode} error. ${error.message}. Although this is an error, it is not blocking the pipeline.`
0 commit comments