takcy / openid4java

Automatically exported from code.google.com/p/openid4java
Apache License 2.0
0 stars 0 forks source link

ConsumerManager in doc example doesn't show the right way to create ConsumerManager object #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a ConsumerManager using the code at
http://code.sxip.com/openid4java/apidoc/
2. Use it as explained in the apidoc

What is the expected output? What do you see instead?
You get null pointer exceptions when verifying nonces and associations. 

What version of the product are you using? On what operating system?
java-openid-sxip-0.9.1.74.tar.gz

Please provide any additional information below.

Here's the working code:
    ConsumerManager newmgr=new ConsumerManager();
    newmgr.setAssociations(new InMemoryConsumerAssociationStore());
    newmgr.setNonceVerifier(new InMemoryNonceVerifier(5000));

I understand the ConsumerManager class has changed in subversion, but the
current packaged version is confusing. 

Original issue reported on code.google.com by gwac...@gmail.com on 29 Mar 2007 at 2:10

GoogleCodeExporter commented 8 years ago
Hi Gabe!

We've updated the distribution page at code.sxip.com with the latest version 
from 
SVN to date; there have been quite a bit of testing and bugfixes since the last 
packaged version, so an update was certainly needed.

Thanks,
Johnny

Original comment by Johnny.B...@gmail.com on 29 Mar 2007 at 7:04