• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Add parameters to openId url

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I don't know if this is the right place to ask question about OpenId, but here it is.

I am using OpenId4Java to create an OpenId Provider. I have put the sample code in a servlet, and it is working fine.

I would like to know,
When I want to log-in to a site using my google account, I enter https://www.google.com/accounts/o8/id in the openId url. After providing my credentials to Google, the openId url provided to the Relying Party by Google looks like:
https://www.google.com/accounts/o8/id?id=xxxxxxxxxxxxxxxxxx

My openId provider url is http://localhost/myapp/openid.jsp
How can I add the user's name after a successful authentication, and send it to Relying Party so that the openId url of the user looks like this:
http://localhost/myapp/openid.jsp?user=xxxxxx

Thanks.
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know of OpenID, but what you are trying to say can simply be done by appending the "?" and "user=xxxxx" strings to the URL right?
 
malik ge
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes that is what I want to do.
But I am not been able to understand how can I do that.

The openId url is http://localhost/myapp/openid.jsp , and that same url is saved for every user on the Consumer site ( which I am also running on a local machine).

After authentication, I want to add ?user=xxxxxx at the end of openid url. Then this openId url will be transferred to Consumer's site.

Like how Google's or yahoo's openId works
 
Amit Ghorpade
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you mean by transferring of URL?
 
malik ge
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By transferring mean,
I enter http://localhost/myapp/openid.jsp as openid url at consumer's site. Like when using google I enter https://www.google.com/accounts/o8/id

But the google's url saved at consumer's site is like this https://www.google.com/accounts/o8/id?id=xxxxxxxxxxxxxxxxxx
Mine url for every user stays the same like http://localhost/myapp/openid.jsp
I would like to know a way by which I can add some parameter at the end of my openid url after authentication.
So that the URL saved at consumer's site looks like
http://localhost/myapp/openid.jsp?user=xxxxxx
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic