How to make joid return a negative assertion if user does not want to allow access?

1 view
Skip to first unread message

Travis Reeder

unread,
Jul 22, 2007, 8:31:29 PM7/22/07
to joid-dev
Hans,

Lets say a user does not want to allow access to a particular realm,
is there a way to send a negative assertion?

Hans Granqvist

unread,
Jul 22, 2007, 8:54:55 PM7/22/07
to joid...@googlegroups.com
Section 14.2.2 of the spec requires you to return extra values for
immediate requests,
so the servlet code becomes something like:

// if user cancels
if (is immediate request) {
return "openid.mode=id_res&openid.user_setup_url=" + setupUrl;
} else {
return "openid.mode=cancel";

Travis Reeder

unread,
Jul 22, 2007, 11:20:05 PM7/22/07
to joid-dev
Ok, but is there anything built into joid (yet) to generate that
response?

Hans Granqvist

unread,
Jul 23, 2007, 1:47:53 AM7/23/07
to joid...@googlegroups.com
Nope, there isn't.

It's not completely trivial to implement it, though, is it? There is
by definition user interaction taking place between request and
response, and that messes the processing flow up a bit. Perhaps you
have a simple solution?


On 7/22/07, Travis Reeder <tre...@gmail.com> wrote:
>

Reply all
Reply to author
Forward
0 new messages