Make Login and Error Page properties in Restrict Public Access optional #17492
Replies: 3 comments 2 replies
-
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.
-
While looking at migration of a project, it came to my mind if it would make sense to have the concept "partial protected content", where page itself it accessible and content partially - e.g. something often seen in online newspapers nowadays: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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