ssl_dict["SSL_CLIENT_CERT"] = cert
ssl_dict["SSL_CLIENT_CERT_CHAIN_0"] = chain
- info = voms.authenticate(ssl_dict)
- print info
+ (user_dn, user_vo, user_fqans) = voms.authenticate(ssl_dict)
+ print (user_dn, user_vo, user_fqans)
+
+ #Authenticate only VOs in list
+ VOs = ['see','fedcloud.egi.eu']
#Always authenticated, only for testing purposes
- authenticated = True
+
+ authenticated = False
+
+ if user_vo in VOs:
+ authenticated = True
if authenticated:
# token will be represented in self.extras