Sample code for querying ATS server and validating the returned auth

token.
This commit is contained in:
S Rahul
2009-06-25 11:04:05 +00:00
parent 8794590e50
commit 15ad4aec02
5 changed files with 195 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
Files in this directory:
-----------------------
CASA-auth.pl: Tool for requesting auth token from ATS. The auth token will be
put in a file "token.txt".
tokenValidate.java: Code for validating auth token.
Makefile: Builds tokenValidate.class
validate.sh: Run this after running CASA-auth.pl. It will validate the token in
"token.txt" and print the identity token to stdout. This should be run on a
machine where ATS certificates have been properly configured. It is better to
run this on the server where ATS runs.