Skip to content

Commit 76fec70

Browse files
Rename hook related errors
ref DEV-3066
2 parents 08f1e6f + e8dddfc commit 76fec70

56 files changed

Lines changed: 214 additions & 233 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

authui/src/authflowv2/components/screen-description.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
font-weight: var(--screen-description__font-weight);
2828
text-align: var(--screen-description__text-align);
2929
color: var(--screen-description__text-color);
30+
/* For breaking long links */
31+
overflow-wrap: anywhere;
3032

3133
:root[alignment-content="start"] & {
3234
@apply text-start;

docs/specs/event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ This event occurs in the following cases:
919919
{
920920
"code": 403,
921921
"name": "Forbidden",
922-
"reason": "WebHookDisallowed",
922+
"reason": "HookDisallowed",
923923
"info": {
924924
"reasons": [
925925
{

docs/specs/hook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ If any hook fails the operation, the operation fails with error
7979
{
8080
"error": {
8181
"name": "Forbidden",
82-
"reason": "WebHookDisallowed",
82+
"reason": "HookDisallowed",
8383
"info": {
8484
"reasons": [
8585
{
@@ -92,7 +92,7 @@ If any hook fails the operation, the operation fails with error
9292
}
9393
```
9494

95-
> For backward compatibility, the reason is called "WebHookDisallowed".
95+
> In the past, the reason was `WebHookDisallowed`. However, we decided to break backward compatibility and rename it to `HookDisallowed`.
9696
9797
The time spent in a blocking event delivery must not exceed 5 seconds, otherwise it will be considered as a failed delivery. Also, the total time spent in all deliveries of the event must not exceed 10 seconds, otherwise it would also be considered as failed delivery. Both timeouts are configurable.
9898

e2e/tests/hook/authentication.post_identified/login.test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ steps:
4141
error: |
4242
{
4343
"name": "Forbidden",
44-
"reason": "WebHookDisallowed",
44+
"reason": "HookDisallowed",
4545
"code": 403,
4646
"info": {
4747
"event_type": "authentication.post_identified",

e2e/tests/hook/authentication.post_identified/promote.test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ steps:
7777
error: |
7878
{
7979
"name": "Forbidden",
80-
"reason": "WebHookDisallowed",
80+
"reason": "HookDisallowed",
8181
"code": 403,
8282
"info": {
8383
"event_type": "authentication.post_identified",

e2e/tests/hook/authentication.post_identified/reauth.test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ steps:
5959
error: |
6060
{
6161
"name": "Forbidden",
62-
"reason": "WebHookDisallowed",
62+
"reason": "HookDisallowed",
6363
"code": 403,
6464
"info": {
6565
"event_type": "authentication.post_identified",

e2e/tests/hook/authentication.post_identified/signup.test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ steps:
4343
error: |
4444
{
4545
"name": "Forbidden",
46-
"reason": "WebHookDisallowed",
46+
"reason": "HookDisallowed",
4747
"code": 403,
4848
"info": {
4949
"event_type": "authentication.post_identified",

e2e/tests/hook/authentication.pre_authenticated/login.test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ steps:
6767
error: |
6868
{
6969
"name": "Forbidden",
70-
"reason": "WebHookDisallowed",
70+
"reason": "HookDisallowed",
7171
"code": 403,
7272
"info": {
7373
"event_type": "authentication.pre_authenticated",

e2e/tests/hook/authentication.pre_authenticated/promote.test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ steps:
8787
error: |
8888
{
8989
"name": "Forbidden",
90-
"reason": "WebHookDisallowed",
90+
"reason": "HookDisallowed",
9191
"code": 403,
9292
"info": {
9393
"event_type": "authentication.pre_authenticated",

e2e/tests/hook/authentication.pre_authenticated/reauth.test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ steps:
8080
error: |
8181
{
8282
"name": "Forbidden",
83-
"reason": "WebHookDisallowed",
83+
"reason": "HookDisallowed",
8484
"code": 403,
8585
"info": {
8686
"event_type": "authentication.pre_authenticated",

0 commit comments

Comments
 (0)