Changeset 3973 for cats/ISOcat


Ignore:
Timestamp:
11/08/13 09:02:21 (11 years ago)
Author:
mwindhouwer
Message:

M credentials.js

  • extended the Shibboleth fallback chain
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/mod-ISOcat-control-access/control/credentials.js

    r2904 r3973  
    3939
    4040// try Shibboleth EPPN authentication
    41 if ((req.argumentExists("oid-eduPersonPrincipalName"))) {
     41if ((shib == null) && (req.argumentExists("oid-eduPersonPrincipalName"))) {
    4242    var auth = req.getArgument("oid-eduPersonPrincipalName");
    4343    auth = auth.replace("data:text/plain,","");
     
    4747    }
    4848}
    49 if ((req.argumentExists("mace-eduPersonPrincipalName"))) {
     49if ((shib == null) && (req.argumentExists("mace-eduPersonPrincipalName"))) {
    5050    var auth = req.getArgument("mace-eduPersonPrincipalName");
    5151    auth = auth.replace("data:text/plain,","");
     
    5555    }
    5656}
    57 if ((req.argumentExists("eduPersonPrincipalName"))) {
     57if ((shib == null) && (req.argumentExists("eduPersonPrincipalName"))) {
    5858    var auth = req.getArgument("eduPersonPrincipalName");
    5959    auth = auth.replace("data:text/plain,","");
     
    6565
    6666// if no principal yet, try Shibboleth EPTID authentication
    67 if (shib == null) {
    68     if ((req.argumentExists("eduPersonTargetedID"))) {
    69         var auth = req.getArgument("eduPersonTargetedID");
    70         auth = auth.replace("data:text/plain,","");
    71         //java.lang.System.out.println("DBG:credentials.js:principal["+auth+"]");
    72         if (auth != "") {
    73             shib = auth;
    74         }
     67if ((shib == null) && (req.argumentExists("oid-eduPersonTargetedID"))) {
     68    var auth = req.getArgument("oid-eduPersonTargetedID");
     69    auth = auth.replace("data:text/plain,","");
     70    //java.lang.System.out.println("DBG:credentials.js:principal["+auth+"]");
     71    if (auth != "") {
     72        shib = auth;
     73    }
     74}
     75if ((shib == null) && (req.argumentExists("mace-eduPersonTargetedID"))) {
     76    var auth = req.getArgument("mace-eduPersonTargetedID");
     77    auth = auth.replace("data:text/plain,","");
     78    //java.lang.System.out.println("DBG:credentials.js:principal["+auth+"]");
     79    if (auth != "") {
     80        shib = auth;
     81    }
     82}
     83if ((shib == null) && (req.argumentExists("eduPersonTargetedID"))) {
     84    var auth = req.getArgument("eduPersonTargetedID");
     85    auth = auth.replace("data:text/plain,","");
     86    //java.lang.System.out.println("DBG:credentials.js:principal["+auth+"]");
     87    if (auth != "") {
     88        shib = auth;
    7589    }
    7690}
Note: See TracChangeset for help on using the changeset viewer.