From 6824165bbb61aafe44e57715cc0e85ef0b544271 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 1 Dec 2011 12:09:42 -0500 Subject: [PATCH] document where we got the schema from --- citadel/modules/openid/serv_openid_rp.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/citadel/modules/openid/serv_openid_rp.c b/citadel/modules/openid/serv_openid_rp.c index 57dfb10f3..da0b7b42e 100644 --- a/citadel/modules/openid/serv_openid_rp.c +++ b/citadel/modules/openid/serv_openid_rp.c @@ -926,7 +926,17 @@ void cmd_oids(char *argbuf) { StrBufAppendBufPlain(RedirectUrl, HKEY("&openid.identity="), 0); StrBufUrlescAppend(RedirectUrl, oiddata->claimed_id, NULL); - /* Attribute Exchange */ + /* return_to completes the round trip */ + StrBufAppendBufPlain(RedirectUrl, HKEY("&openid.return_to="), 0); + StrBufUrlescAppend(RedirectUrl, return_to, NULL); + + /* Attribute Exchange + * See: + * http://openid.net/specs/openid-attribute-exchange-1_0.html + * http://code.google.com/apis/accounts/docs/OpenID.html#endpoint + * http://test-id.net/OP/AXFetch.aspx + */ + StrBufAppendBufPlain(RedirectUrl, HKEY("&openid.ns.ax="), 0); StrBufUrlescAppend(RedirectUrl, NULL, "http://openid.net/srv/ax/1.0"); @@ -946,10 +956,6 @@ void cmd_oids(char *argbuf) { StrBufAppendBufPlain(RedirectUrl, HKEY("&openid.ax.type.nickname="), 0); StrBufUrlescAppend(RedirectUrl, NULL, "http://axschema.org/namePerson/nickname"); - /* return_to completes the round trip */ - StrBufAppendBufPlain(RedirectUrl, HKEY("&openid.return_to="), 0); - StrBufUrlescAppend(RedirectUrl, return_to, NULL); - syslog(LOG_DEBUG, "OpenID: redirecting client to %s", ChrPtr(RedirectUrl)); cprintf("%d %s\n", CIT_OK, ChrPtr(RedirectUrl)); } -- 2.30.2