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
The mentioned claims would be readily available for interpretation on ClaimsIdentity.
New behavior
The mentioned claims are no longer available on ClaimsIdentity.
Type of breaking change
Binary incompatible: Existing binaries may encounter a breaking change in behavior, such as failure to load/execute or different run-time behavior.
Source incompatible: Source code may encounter a breaking change in behavior when targeting the new runtime/component/SDK, such as compile errors or different run-time behavior.
Reason for change
First and foremost, this change allows for smoother access changes for users of the Management API. At this time we're forced to revoke tokens when access changes, which is not an ideal behaviour for currently logged-in users.
Secondly, this change paves the way for facilitating external authorization for specific operations that are currently tied to the ClaimsIdentity claims.
Recommended action
To access the allowed sections of a user, go directly to IUser:
Description
The following claims will be removed from
ClaimsIdentity
in V15:http://umbraco.org/2015/02/identity/claims/backoffice/startcontentnode
http://umbraco.org/2015/02/identity/claims/backoffice/startmedianode
http://umbraco.org/2015/02/identity/claims/backoffice/allowedapp
These claims correspond to these (now obsolete) security constants:
Umbraco.Cms.Core.Constants.Security.StartContentNodeIdClaimType
Umbraco.Cms.Core.Constants.Security.StartMediaNodeIdClaimType
Umbraco.Cms.Core.Constants.Security.AllowedApplicationsClaimType
Version
Umbraco 15
Previous behavior
The mentioned claims would be readily available for interpretation on
ClaimsIdentity
.New behavior
The mentioned claims are no longer available on
ClaimsIdentity
.Type of breaking change
Reason for change
First and foremost, this change allows for smoother access changes for users of the Management API. At this time we're forced to revoke tokens when access changes, which is not an ideal behaviour for currently logged-in users.
Secondly, this change paves the way for facilitating external authorization for specific operations that are currently tied to the
ClaimsIdentity
claims.Recommended action
To access the allowed sections of a user, go directly to
IUser
:To access the calculated user start nodes, use the
UserExtensions
:Affected APIs
Umbraco.Extensions.ClaimsIdentityExtensions.GetStartContentNodes(this ClaimsIdentity identity)
Umbraco.Extensions.ClaimsIdentityExtensions.GetStartMediaNodes(this ClaimsIdentity identity)
Umbraco.Extensions.ClaimsIdentityExtensions.GetAllowedApplications(this ClaimsIdentity identity)
The text was updated successfully, but these errors were encountered: