You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by Andy Cutright <An...@borland.com> on 2003/08/27 10:48:17 UTC

[juddi-Developers] discard_authToken && TOKEN_STATE

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 



RE: [juddi-Developers] discard_authToken && TOKEN_STATE

Posted by Steve Viens <st...@viens.net>.
Yeah, a TOKEN_STATE of 0 is supposed to indicate that an AuthToken has
expired.  

The getPublisher(authInfo,dataStore) method of Abstract function class
is supposed to throw the AuthTokenExpired or exception when
DataStore.isAuthTokenExpired returns false.

Steve


-----Original Message-----
From: juddi-developers-admin@lists.sourceforge.net
[mailto:juddi-developers-admin@lists.sourceforge.net] On Behalf Of Andy
Cutright
Sent: Wednesday, August 27, 2003 11:46 AM
To: juddi-developers@lists.sourceforge.net
Subject: [juddi-Developers] discard_authToken && TOKEN_STATE


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 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
juddi-developers mailing list juddi-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/juddi-developers