grnq / joid

Java OpenID = JOID OpenID providers and relying parties for OpenID 1.1 and 2.0
Other
4 stars 0 forks source link

Add setClaimedId to AuthenticationRequest #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
we need the ability to change the claim-id in the authentication request.

Use case - like in yahoo;
user write the id url in the consumer: "http://me.yahoo.com"
user logins to yahoo
yahoo redirects the user back to the consumer, this time with claimed_id = 
"https://me.yahoo.com/a/<user id here>"

That way, the user needs to know only a single simple URL.

Original issue reported on code.google.com by yuval.ko...@gmail.com on 11 Jul 2010 at 8:53

GoogleCodeExporter commented 9 years ago
almost forgot, of course the code is very straight forward - in 
AuthenticationRequest.java

just add:

    public void setClaimedIdentity(String claimedIdentity) {
        this.claimed_id = claimedIdentity;
    }

Original comment by yuval.ko...@gmail.com on 11 Jul 2010 at 8:57