You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Shawn McKinney (JIRA)" <ji...@apache.org> on 2019/03/16 14:22:00 UTC
[jira] [Commented] (FC-265) Delegated Administration Enhancements
to Apache Fortress REST
[ https://issues.apache.org/jira/browse/FC-265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16794267#comment-16794267 ]
Shawn McKinney commented on FC-265:
-----------------------------------
Changing the way Apache Fortress Rest accepts credentials for ARBAC02 checks. Now it will accept the session from the container, produced by Apache Fortress Realm and serialized via the java.security.principal. The rest runtime will deserialize that principal into a a core rbac session using api on the Apache Fortress realm:
```
// Get the security principal from the runtime.
String szPrincipal = httpRequest.getUserPrincipal().toString();
// This has to happen before it can be used by Fortress.
fortress.core.model.Session realmSession = j2eePolicyMgr.deserialize(szPrincipal);
```
> Delegated Administration Enhancements to Apache Fortress REST
> -------------------------------------------------------------
>
> Key: FC-265
> URL: https://issues.apache.org/jira/browse/FC-265
> Project: FORTRESS
> Issue Type: Improvement
> Affects Versions: 2.0.3
> Reporter: Shawn McKinney
> Assignee: Shawn McKinney
> Priority: Major
> Fix For: 2.0.4
>
>
> Described here:
> http://mail-archives.apache.org/mod_mbox/directory-fortress/201903.mbox/%3c77DC86D5-8CA5-4089-8F1A-5C373752EED3@apache.org%3e
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)