directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn McKinney (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FC-248) New API to combine createSession & checkAccess
Date Wed, 24 Oct 2018 10:22:00 GMT
Shawn McKinney created FC-248:
---------------------------------

             Summary: New API to combine createSession & checkAccess
                 Key: FC-248
                 URL: https://issues.apache.org/jira/browse/FC-248
             Project: FORTRESS
          Issue Type: Improvement
    Affects Versions: 2.0.2
            Reporter: Shawn McKinney
            Assignee: Shawn McKinney
             Fix For: 2.0.3


Needed to simplify interaction for stateless usages.  Helps over REST, caller doesn't have
to hold, parse, cache a session from createSession, before calling checkAccess.  One less
roundtrip when needing to do both consecutively.

 

{color:#000000}Below the format for the new checkAccess API.  {color}

{color:#000000}API Signature{color}
{color:#000000}public boolean checkAccess{color}
{color:#000000}      ( User user, {color}
{color:#000000}        Permission perm, {color}
{color:#000000}        boolean isTrusted ){color}
{color:#000000}throws SecurityException;{color}

{color:#000000}Sample XML Request:{color}
{color:#000000}<FortRequest>{color}
{color:#000000}   <contextId>HOME</contextId>{color}
{color:#000000}   <entity xsi:type="permission" xmlns:...">{color}
{color:#000000}       <objName>account</objName>{color}
{color:#000000}       <opName>withdrawal</opName>{color}
{color:#000000}   </entity>{color}
{color:#000000}   <entity2 xsi:type="user" xmlns:xsi=“...">{color}
{color:#000000}       <userId>curly</userId>{color}
{color:#000000}       <props>{color}
{color:#000000}           <entry>{color}
{color:#000000}               <key>locale</key>{color}
{color:#000000}               <value>east</value>{color}
{color:#000000}           </entry>{color}
{color:#000000}       </props>{color}
{color:#000000}   </entity2>{color}
{color:#000000}   <isFlag>true</isFlag>{color}
{color:#000000}</FortRequest>{color}

{color:#000000}Sample XML Response:{color}
{color:#000000}<FortResponse>{color}
{color:#000000}   <errorCode>0</errorCode>  {color}
{color:#000000}   <isAuthorized>true</isAuthorized>{color}

{color:#000000}</FortResponse>{color}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message