Re: Openid integration?

2008-12-11 Thread Nino Saturnino Martinez Vazquez Wael



David Leangen wrote:
  
Hmm, I do actually have something working, which seems to be really 
simple.



Ok, good for you!
  
Yup, I plan to push it back to wicketstuff once I've figured out the 
last problems...


  
Using openid4java, my only problem are that I cant seem to get 
any openid providers to give me the requested attributes, like 
email and name. How did you solve this?



Are you sure it's an openid4java problem?
  

No Im not, in fact im much in doubt..

If the OP does not support extensions, then there's just nothing you can
do!
  

Yeah thats my conclusion as well, it sux somewhat..

Normally (again from my porous memory, sorry!) there should be some
parameter in which the OP declares which extensions it supports.

Ahh thanks for the hint. Really useful.

 For
example, Yahoo supports only pape, nothing else. That means that try as
you might, you'll never get any registration info from them.
  

PAPE?

But in any case, this should be on the openid4java list, not here...
  
True, they are just so slow there :) I've started a blog entry on this ( 
http://ninomartinez.wordpress.com/2008/12/11/openid-the-challenge-attributes/ 
) please comment if you have something to add, and written the 
openid4java list as well.. But gotten no answers..


Cheers,
Dave




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Openid integration?

2008-12-10 Thread David Leangen


> Hmm, I do actually have something working, which seems to be really 
> simple.

Ok, good for you!


> Using openid4java, my only problem are that I cant seem to get 
> any openid providers to give me the requested attributes, like 
> email and name. How did you solve this?

Are you sure it's an openid4java problem?

If the OP does not support extensions, then there's just nothing you can
do!

Normally (again from my porous memory, sorry!) there should be some
parameter in which the OP declares which extensions it supports. For
example, Yahoo supports only pape, nothing else. That means that try as
you might, you'll never get any registration info from them.

But in any case, this should be on the openid4java list, not here...


Cheers,
Dave




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Openid integration?

2008-12-10 Thread Nino Saturnino Martinez Vazquez Wael



David Leangen wrote:

Hi, Nino,

Sorry, I haven't been following this list daily lately. I probably should,
since I just sifted through 500 messags. Wow, this list is really active!
  
Yeah, it's really knocking away :) So much that it really feels silent 
on other forums..

Anyway, I did say I'd get back to you once I completed my OpenID
integration, and I just completed it recently.
  

Ahh great.


However, I'm not sure I can really be of much use to you. The fact is that I
had to pretty much redo everything in a custom way. As you know, I am
running Wicket in OSGi using pax-wicket. This really changes a lot of
things, especially the way I'm using Wicket. My solution will certainly not
be generally applicable, so I won't even bother trying.
  

no problem.

In any case, the login process using OpenID is a little different from the
"traditional" process. I used a few tricks in Wicket to get this to work.
(I'm writing from [my bad] memory, so please bear with me...) If you recall,
when a user logs in, there is some exception thrown like
UnauthorizedInstantiationException or something. There is a handler that can
be registered for this.

The default flow looks something like this:

  Is the user authenticated?
 No: --> throw new RestartAtSomethingException( LoginPage.class )
 Yes: --> throw new SecurityExceptionOrSomethingLikeThat

What I did was add an extra step for OpenID:

  Is the user authenticated?
 No: --> throw new RestartAtSomethingException( LoginPage.class )

  Is the user registered?
 No: --> throw new RestartAtSomethingException( RegistrationPage.class )
 Yes: --> throw new SecurityExceptionOrSomethingLikeThat

This seems to work well. Sorry I don't remember the actual names. ;-)
  

No problem, I have this part working.

As for the authentication stuff (I think you were posing a question about
this, too), I used my own custom implementation based on the UserAdmin
service. It works very well and is very flexible, but it did take a while to
build correctly.

There was a lot more to it, but I would say those were the main aspects. Oh,
forgot to mention that I used openid4java. It seems to work ok, except for
the fact that is depends on openxri, which does some crappy dynamic
instantiation of xml parsers (I say "crappy" because it's a hassle in an
OSGi environment).
  

Yeah I saw your post on openid4java list.


If you think there is something general we could make out of this, I'd be
happy to work with you, but I think it would only apply for pax-wicket
users. I just don't see how this solution could work for general Wicket
users.
  
Hmm, I do actually have something working, which seems to be really 
simple. Using openid4java, my only problem are that I cant seem to get 
any openid providers to give me the requested attributes, like email and 
name. How did you solve this?


Cheers,
Dave




  

-Original Message-
From: Nino Saturnino Martinez Vazquez Wael
[mailto:[EMAIL PROTECTED]
Sent: 2 December 2008 04:31
To: users@wicket.apache.org
Subject: Openid integration?


Hi Guys

Have any of you tried to do a openid integration ?

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Openid integration?

2008-12-10 Thread David Leangen

Hi, Nino,

Sorry, I haven't been following this list daily lately. I probably should,
since I just sifted through 500 messags. Wow, this list is really active!

Anyway, I did say I'd get back to you once I completed my OpenID
integration, and I just completed it recently.


However, I'm not sure I can really be of much use to you. The fact is that I
had to pretty much redo everything in a custom way. As you know, I am
running Wicket in OSGi using pax-wicket. This really changes a lot of
things, especially the way I'm using Wicket. My solution will certainly not
be generally applicable, so I won't even bother trying.

In any case, the login process using OpenID is a little different from the
"traditional" process. I used a few tricks in Wicket to get this to work.
(I'm writing from [my bad] memory, so please bear with me...) If you recall,
when a user logs in, there is some exception thrown like
UnauthorizedInstantiationException or something. There is a handler that can
be registered for this.

The default flow looks something like this:

  Is the user authenticated?
 No: --> throw new RestartAtSomethingException( LoginPage.class )
 Yes: --> throw new SecurityExceptionOrSomethingLikeThat

What I did was add an extra step for OpenID:

  Is the user authenticated?
 No: --> throw new RestartAtSomethingException( LoginPage.class )

  Is the user registered?
 No: --> throw new RestartAtSomethingException( RegistrationPage.class )
 Yes: --> throw new SecurityExceptionOrSomethingLikeThat

This seems to work well. Sorry I don't remember the actual names. ;-)

As for the authentication stuff (I think you were posing a question about
this, too), I used my own custom implementation based on the UserAdmin
service. It works very well and is very flexible, but it did take a while to
build correctly.

There was a lot more to it, but I would say those were the main aspects. Oh,
forgot to mention that I used openid4java. It seems to work ok, except for
the fact that is depends on openxri, which does some crappy dynamic
instantiation of xml parsers (I say "crappy" because it's a hassle in an
OSGi environment).


If you think there is something general we could make out of this, I'd be
happy to work with you, but I think it would only apply for pax-wicket
users. I just don't see how this solution could work for general Wicket
users.


Cheers,
Dave




> -Original Message-
> From: Nino Saturnino Martinez Vazquez Wael
> [mailto:[EMAIL PROTECTED]
> Sent: 2 December 2008 04:31
> To: users@wicket.apache.org
> Subject: Openid integration?
>
>
> Hi Guys
>
> Have any of you tried to do a openid integration ?
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Openid integration?

2008-12-05 Thread Nino Saturnino Martinez Vazquez Wael

Hi Olger

I think, i'll wait a bit with this, it's overkill for the application im 
doing right now. But for future reference, it would be very nice with an 
example, So bring it on please :)


Olger Warnier wrote:

Hi Nino,

It is possibile to integrate spring security with the wicket 
swarm/wasp software.
This gives you freedom to attach any kind of authentication mechanism, 
including openid.

We use the integration for a LDAP based integration.

If you like, I have a sample on how to deal with this somewhere.

Kind Regards,

Olger


On 3 dec 2008, at 07:31, Nino Saturnino Martinez Vazquez Wael wrote:


Hmm, i'll dig into it.. Thanks..

Jan Kriesten wrote:

Hi Nino,


I have something working only partially though, cant get email and 
name

attribute back from the openid provider properly.. Seems to work with
openid.org, but not claimid.com or myopenid.com



why not using spring-security and don't have any more hassle at all?

Best regards, --- Jan.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Openid integration?

2008-12-04 Thread Olger Warnier

Hi Nino,

It is possibile to integrate spring security with the wicket swarm/ 
wasp software.
This gives you freedom to attach any kind of authentication mechanism,  
including openid.

We use the integration for a LDAP based integration.

If you like, I have a sample on how to deal with this somewhere.

Kind Regards,

Olger


On 3 dec 2008, at 07:31, Nino Saturnino Martinez Vazquez Wael wrote:


Hmm, i'll dig into it.. Thanks..

Jan Kriesten wrote:

Hi Nino,


I have something working only partially though, cant get email and  
name
attribute back from the openid provider properly.. Seems to work  
with

openid.org, but not claimid.com or myopenid.com



why not using spring-security and don't have any more hassle at all?

Best regards, --- Jan.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Openid integration?

2008-12-03 Thread Nino Saturnino Martinez Vazquez Wael

Yup I remember the page..

Michael Sparer wrote:

Hmm Im using auth roles now.. Are there an way to integrate the two..?



hey nino, take a look at
http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html - it's a bit
older but I think it might still work. as acegi is now called spring
security. 


regards,
Michael

Nino.Martinez wrote:
  

Hmm Im using auth roles now.. Are there an way to integrate the two..?

Another thing though, I need to either use sreg or AX to pull some 
values (only email and name) to my system is that possible with the 
spring security thing( I know this should probably go to the spring

forum)?

Jan Kriesten wrote:


Hi Nino,

  
  

I have something working only partially though, cant get email and name
attribute back from the openid provider properly.. Seems to work with
openid.org, but not claimid.com or myopenid.com



why not using spring-security and don't have any more hassle at all?

Best regards, --- Jan.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  
  

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
Michael Sparer
http://talk-on-tech.blogspot.com
  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Openid integration?

2008-12-03 Thread Nino Saturnino Martinez Vazquez Wael
Looks simple enough.. I guess my only fear are that I then will have it 
converted into something that still wont let me pull the two required 
values from the openid provider...


Jan Kriesten wrote:

Hi Nino,

  

Hmm Im using auth roles now.. Are there an way to integrate the two..?



that shouldn't be a too big deal, you just have to convert the spring-security
granted authorities into 'roles'.

To get the AuthenticationManager into your Application you could use the Spring
factory (Scala code):

---8<---
class AuthTestApplication extends WebApplication {
  import org.springframework.security.AuthenticationManager
  import scala.reflect.BeanProperty

  // injected/set by Spring context
  @BeanProperty var authenticationManager: AuthenticationManager = null
  ...
}
---8<---

web.xml:

---8<---
  
  

org.springframework.web.context.ContextLoaderListener
  

  
  
contextConfigLocation

  /WEB-INF/spring-security.xml

  
  
Acegi Filter Chain Proxy

org.springframework.security.util.FilterToBeanProxy

  targetClass
  
org.springframework.security.util.FilterChainProxy

  
  
Acegi Filter Chain Proxy
/*
  

  
  
AuthTestApplication

de.footprint.wicket.application.locale.LocaleFilter

applicationFactoryClassName

org.apache.wicket.spring.SpringWebApplicationFactory


  applicationClassName
  application.TestApp


  beanName
  authTestApplication


  configuration
  development

  
  
AuthTestApplication
/*
  
---8<---

And the spring-security.xml as an example:

---8<---

http://www.springframework.org/dtd/spring-beans.dtd'>


  

  
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT

/**=httpSessionContextIntegrationFilter,logoutFilter,anonymousProcessingFilter
  

  

  
  

  

  


  

  


  

  


  

  

  

  

  


  

  

  

  

  

  
testadmin=testadmin,ROLE_ADMIN
testuser=testuser,ROLE_USER
  

  

  
  

  


---8<---

Best regards, --- Jan.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Openid integration?

2008-12-03 Thread Jan Kriesten

Hi Nino,

> Hmm Im using auth roles now.. Are there an way to integrate the two..?

that shouldn't be a too big deal, you just have to convert the spring-security
granted authorities into 'roles'.

To get the AuthenticationManager into your Application you could use the Spring
factory (Scala code):

---8<---
class AuthTestApplication extends WebApplication {
  import org.springframework.security.AuthenticationManager
  import scala.reflect.BeanProperty

  // injected/set by Spring context
  @BeanProperty var authenticationManager: AuthenticationManager = null
  ...
}
---8<---

web.xml:

---8<---
  
  

org.springframework.web.context.ContextLoaderListener
  

  
  
contextConfigLocation

  /WEB-INF/spring-security.xml

  
  
Acegi Filter Chain Proxy

org.springframework.security.util.FilterToBeanProxy

  targetClass
  
org.springframework.security.util.FilterChainProxy

  
  
Acegi Filter Chain Proxy
/*
  

  
  
AuthTestApplication

de.footprint.wicket.application.locale.LocaleFilter

applicationFactoryClassName

org.apache.wicket.spring.SpringWebApplicationFactory


  applicationClassName
  application.TestApp


  beanName
  authTestApplication


  configuration
  development

  
  
AuthTestApplication
/*
  
---8<---

And the spring-security.xml as an example:

---8<---

http://www.springframework.org/dtd/spring-beans.dtd'>


  

  
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT

/**=httpSessionContextIntegrationFilter,logoutFilter,anonymousProcessingFilter
  

  

  
  

  

  


  

  


  

  


  

  

  

  

  


  

  

  

  

  

  
testadmin=testadmin,ROLE_ADMIN
testuser=testuser,ROLE_USER
  

  

  
  

  


---8<---

Best regards, --- Jan.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Openid integration?

2008-12-03 Thread Michael Sparer

> Hmm Im using auth roles now.. Are there an way to integrate the two..?

hey nino, take a look at
http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html - it's a bit
older but I think it might still work. as acegi is now called spring
security. 

regards,
Michael

Nino.Martinez wrote:
> 
> Hmm Im using auth roles now.. Are there an way to integrate the two..?
> 
> Another thing though, I need to either use sreg or AX to pull some 
> values (only email and name) to my system is that possible with the 
> spring security thing( I know this should probably go to the spring
> forum)?
> 
> Jan Kriesten wrote:
>> Hi Nino,
>>
>>   
>>> I have something working only partially though, cant get email and name
>>> attribute back from the openid provider properly.. Seems to work with
>>> openid.org, but not claimid.com or myopenid.com
>>> 
>>
>> why not using spring-security and don't have any more hassle at all?
>>
>> Best regards, --- Jan.
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>   
> 
> -- 
> -Wicket for love
> 
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Openid-integration--tp20778841p20810761.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Openid integration?

2008-12-02 Thread Nino Saturnino Martinez Vazquez Wael

Hmm Im using auth roles now.. Are there an way to integrate the two..?

Another thing though, I need to either use sreg or AX to pull some 
values (only email and name) to my system is that possible with the 
spring security thing( I know this should probably go to the spring forum)?


Jan Kriesten wrote:

Hi Nino,

  

I have something working only partially though, cant get email and name
attribute back from the openid provider properly.. Seems to work with
openid.org, but not claimid.com or myopenid.com



why not using spring-security and don't have any more hassle at all?

Best regards, --- Jan.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Openid integration?

2008-12-02 Thread Nino Saturnino Martinez Vazquez Wael

Hmm, i'll dig into it.. Thanks..

Jan Kriesten wrote:

Hi Nino,

  

I have something working only partially though, cant get email and name
attribute back from the openid provider properly.. Seems to work with
openid.org, but not claimid.com or myopenid.com



why not using spring-security and don't have any more hassle at all?

Best regards, --- Jan.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Openid integration?

2008-12-02 Thread Jan Kriesten

Hi Nino,

> I have something working only partially though, cant get email and name
> attribute back from the openid provider properly.. Seems to work with
> openid.org, but not claimid.com or myopenid.com

why not using spring-security and don't have any more hassle at all?

Best regards, --- Jan.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Openid integration?

2008-12-02 Thread Nino Saturnino Martinez Vazquez Wael
 addresses
   fetch.setCount("Email", 1);
   AuthRequest req = manager.authenticate(discovered, returnToUrl);
   req.addExtension(fetch);
   // authReq.addExtension(sregReq);
   if (!discovered.isVersion2()) {
   // Option 1: GET HTTP-redirect to the OpenID Provider 
endpoint

   // The only method supported in OpenID 1.x
   // redirect-URL usually limited ~2048 bytes
   httpResp.sendRedirect(authReq.getDestinationUrl(true));
   return null;

   } else {
   httpResp.sendRedirect(authReq.getDestinationUrl(true));
   return null;
   // // Option 2: HTML FORM Redirection (Allows payloads >2048
   // bytes)
   // RequestDispatcher dispatcher =
   // httpReq.getRequestDispatcher(OpenIdSignInPage.MOUNTPATH);
   // httpReq.setAttribute("parameterMap",
   // authReq.getParameterMap());
   // httpReq.setAttribute("destinationUrl",
   // authReq.getDestinationUrl(false));
   // dispatcher.forward(httpReq, httpResp);
   }
   } catch (OpenIDException e) {
   // present error to the user
   }

   return null;
   }

   // --- processing the authentication response ---
   public User verifyResponse(HttpServletRequest httpReq) {
   try {
   // extract the parameters from the authentication response
   // (which comes in as a HTTP request from the OpenID provider)
   ParameterList response = new ParameterList(httpReq
   .getParameterMap());

   // retrieve the previously stored discovery information
   DiscoveryInformation discovered = (DiscoveryInformation) httpReq
   .getSession().getAttribute("openid-disc");

   // extract the receiving URL from the HTTP request
   StringBuffer receivingURL = httpReq.getRequestURL();
   String queryString = httpReq.getQueryString();
   if (queryString != null && queryString.length() > 0)
   receivingURL.append("?").append(httpReq.getQueryString());

   // verify the response; ConsumerManager needs to be the same
   // (static) instance used to place the authentication request
   VerificationResult verification = manager.verify(receivingURL
   .toString(), response, discovered);

   // examine the verification result and extract the verified
   // identifier
   Identifier verified = verification.getVerifiedId();
   if (verified != null) {
   AuthSuccess authSuccess = (AuthSuccess) verification
   .getAuthResponse();
   if (authSuccess.hasExtension(AxMessage.OPENID_NS_AX)) {
   FetchResponse fetchResp = (FetchResponse) authSuccess
   .getExtension(AxMessage.OPENID_NS_AX);
   return filluser(fetchResp);
   }

   if (authSuccess.hasExtension(OPENID_NS_SREG1_1)) {
   log.info("got 
info:"+authSuccess.getParameterValue("openid.sreg.email"));
   log.info("got 
info:"+authSuccess.getParameterValue("openid.sreg.fullname"));
  
   User user = new User();
   
user.setEmail(authSuccess.getParameterValue("openid.sreg.email"));
   
user.setName(authSuccess.getParameterValue("openid.sreg.fullname"));

   return user;


   }

   // return verified; // success
   }
   } catch (OpenIDException e) {
   // present error to the user
   }

   return null;
   }

   private User filluser(FetchResponse fetchResp) {

   List emails = fetchResp.getAttributeValues("email");
   String email = emails.get(0);
   List names = fetchResp.getAttributeValues("name");
   String name = names.get(0);

   User user = new User();
   user.setEmail(email);
   user.setName(name);
   return user;

   }
}




Michael Sparer wrote:

Looks pretty empty, doesn't it? :-)


Nino.Martinez wrote:
  

Hmm just saw this :

http://code.google.com/p/wicket-auth-openid/

Nino Saturnino Martinez Vazquez Wael wrote:


Hi Guys

Have any of you tried to do a openid integration ?

  

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
Michael Sparer
http://talk-on-tech.blogspot.com
  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Openid integration?

2008-12-02 Thread Michael Sparer

Looks pretty empty, doesn't it? :-)


Nino.Martinez wrote:
> 
> Hmm just saw this :
> 
> http://code.google.com/p/wicket-auth-openid/
> 
> Nino Saturnino Martinez Vazquez Wael wrote:
>> Hi Guys
>>
>> Have any of you tried to do a openid integration ?
>>
> 
> -- 
> -Wicket for love
> 
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Openid-integration--tp20778841p20790787.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Openid integration?

2008-12-01 Thread Nino Saturnino Martinez Vazquez Wael

Hmm just saw this :

http://code.google.com/p/wicket-auth-openid/

Nino Saturnino Martinez Vazquez Wael wrote:

Hi Guys

Have any of you tried to do a openid integration ?



--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Openid integration?

2008-12-01 Thread Nino Saturnino Martinez Vazquez Wael

Hi Guys

Have any of you tried to do a openid integration ?

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]