Make Login and Error Page properties in Restrict Public Access optional #17492
Replies: 2 comments 1 reply
-
It would be great if we could disable these via content via a setting, notification handler or perhaps it is possible via Angular interceptors in the legacy backoffice (Umbraco 13). |
Beta Was this translation helpful? Give feedback.
-
I think you are wrong. The login redirect urls and the logout redirect urls are frontend Urls and not the backoffice URLs. When you want to login in a headless scenario, you need to be redirected to a login page on the Umbraco side (#17492 (comment)). When you call the authorize endpoint (https://{server-host}/umbraco/delivery/api/v1/security/member/authorize) it will return the login page you have specified in the backoffice. So this setting is not useless in all headless environments. I do agree that it would be nice for them to be optional so if you want to do things differently, you don't NEED to set them. |
Beta Was this translation helpful? Give feedback.
-
In Restrict Public Access the Login Page and Error Page properties are required.
However with a headless setup these are not used, where we have
LoginRedirectUrls
andLogoutRedirectUrls
.https://docs.umbraco.com/umbraco-cms/reference/content-delivery-api/protected-content-in-the-delivery-api#enabling-member-authorization
Could these properties e.g. be hiddden/removed if
DeliveryApi > MemberAuthorization > Enabled
istrue
.. or another config to disable these?Beta Was this translation helpful? Give feedback.
All reactions