CASA/CASA-auth-token/sample/validate.sh

15 lines
578 B
Bash
Raw Permalink Normal View History

#!/bin/bash
CLASSPATH=.
CLASSPATH=$CLASSPATH:/srv/www/casaats/webapps/CasaAuthTokenSvc/WEB-INF/classes
CLASSPATH=$CLASSPATH:/usr/share/java/xerces-j2.jar
CLASSPATH=$CLASSPATH:/usr/share/java/log4j.jar
CLASSPATH=$CLASSPATH:/opt/novell/zenworks/share/tomcat/common/classes
CLASSPATH=$CLASSPATH:/srv/www/casaats/webapps/CasaAuthTokenSvc/WEB-INF/lib/xmlsec-1.4.0.jar
CLASSPATH=$CLASSPATH:/srv/www/casaats/webapps/CasaAuthTokenSvc/WEB-INF/lib/commons-logging.jar
export CLASSPATH
id_token=`java tokenValidate`
perl -e "use MIME::Base64(); print MIME::Base64::decode('$id_token')"