Changeset 3973 for cats/ISOcat
- Timestamp:
- 11/08/13 09:02:21 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cats/ISOcat/trunk/mod-ISOcat-control-access/control/credentials.js
r2904 r3973 39 39 40 40 // try Shibboleth EPPN authentication 41 if (( req.argumentExists("oid-eduPersonPrincipalName"))) {41 if ((shib == null) && (req.argumentExists("oid-eduPersonPrincipalName"))) { 42 42 var auth = req.getArgument("oid-eduPersonPrincipalName"); 43 43 auth = auth.replace("data:text/plain,",""); … … 47 47 } 48 48 } 49 if (( req.argumentExists("mace-eduPersonPrincipalName"))) {49 if ((shib == null) && (req.argumentExists("mace-eduPersonPrincipalName"))) { 50 50 var auth = req.getArgument("mace-eduPersonPrincipalName"); 51 51 auth = auth.replace("data:text/plain,",""); … … 55 55 } 56 56 } 57 if (( req.argumentExists("eduPersonPrincipalName"))) {57 if ((shib == null) && (req.argumentExists("eduPersonPrincipalName"))) { 58 58 var auth = req.getArgument("eduPersonPrincipalName"); 59 59 auth = auth.replace("data:text/plain,",""); … … 65 65 66 66 // 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 } 67 if ((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 } 75 if ((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 } 83 if ((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; 75 89 } 76 90 }
Note: See TracChangeset
for help on using the changeset viewer.