Subject: | documentation unclear about setup_needed |
setup_needed => sub {
# (OpenID 2) retry request in checkid_setup mode
# (OpenID 1) redirect user to $csr->user_setup_url
},
I find the above doumentation very unclear. How do I determine if openid 2 or openid
1 is in use? It's clear what to do for openid 1, but what does "retry request in
checkid_setup mode" mean? Does it mean that I should here redirect to the $check_url
used to start the openid login process?
Since I don't know when this case happens, or how to test it, this is very murky
indeed.
BTW, the examples/consumer.cgi has:
setup_required => sub {
my ($setup_url) = @_;
return [ 301, [ Location => $setup_url ], [] ];
},
This seems massively out of date. setup_required is a deprecated name.
An up-to-date example would help significantly.