juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Cutright" <Andy.Cutri...@borland.com>
Subject [juddi-Developers] discard_authToken && TOKEN_STATE
Date Wed, 27 Aug 2003 08:48:17 GMT
hi y'all, 

i'm trying to test behavior when using a auth token that's been
discarded. discard_authToken sets the column TOKEN_STATE 0 for the
particular auth token. if i subsequently use that auth token, the
TOKEN_STATE is not consulted, and i can update the registry. is
TOKEN_STATE meant to mark the validity of a token? 

here's some log entries (need to reconfigure to write to file.. )

/////////////// discard auth token
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body><discard_authToken generic="2.0"
xmlns="urn:uddi-org:api_v2"><authInfo>authToken:CE104000-D825-11D7-8000-
CBE4189163CF</authInfo></discard_authToken> </soapenv:Body>
</soapenv:Envelope>


update AUTH_TOKEN table:

	UPDATE AUTH_TOKEN SET
LAST_USED=?,NUMBER_OF_USES=NUMBER_OF_USES+1,TOKEN_STATE=0 WHERE
AUTH_TOKEN=? 
	 LAST_USED=2003-08-26 17:31:31.734
	 AUTH_TOKEN=authToken:CE104000-D825-11D7-8000-CBE4189163CF


<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body><dispositionReport generic="2.0" operator="jUDDI.org"
xmlns="urn:uddi-org:api_v2"><result errno="0"/></dispositionReport>
</soapenv:Body>
</soapenv:Envelope>

///////////// now attempt to use the token again

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body><save_tModel generic="2.0"
xmlns="urn:uddi-org:api_v2"><authInfo>authToken:CE104000-D825-11D7-8000-
CBE4189163CF</authInfo><tModel><name>testKeyName0</name><categoryBag><ke
yedReference keyName="testKeyName0"
keyValue="testKeyValue0"/></categoryBag></tModel></save_tModel>
</soapenv:Body>
</soapenv:Envelope>


select from AUTH_TOKEN table:

	SELECT PUBLISHER_ID,PUBLISHER_NAME FROM AUTH_TOKEN WHERE
AUTH_TOKEN=?
	 AUTH_TOKEN=authToken:CE104000-D825-11D7-8000-CBE4189163CF


//// invalid ?? response message.. 
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body><tModelDetail generic="2.0" operator="jUDDI.org"
xmlns="urn:uddi-org:api_v2"><tModel authorizedName="expired"
operator="jUDDI.org"
tModelKey="uuid:CEAB2070-D825-11D7-A070-82459E193764"><name>testKeyName0
</name><categoryBag><keyedReference keyName="testKeyName0"
keyValue="testKeyValue0"
tModelKey=""/></categoryBag></tModel></tModelDetail> </soapenv:Body>
</soapenv:Envelope>


cheers,
andy 


Mime
View raw message