|
|
|
@@ -15,4 +15,5 @@ using namespace std; |
15 | #include <opkele/debug.h> |
15 | #include <opkele/debug.h> |
16 | #include <opkele/verify_op.h> |
16 | #include <opkele/verify_op.h> |
| |
17 | #include <opkele/sreg.h> |
17 | |
18 | |
18 | #include "sqlite.h" |
19 | #include "sqlite.h" |
@@ -270,5 +271,6 @@ int main(int argc,char *argv[]) { |
270 | if(gw.get_param("hts_id")!=OP.htc.get_value()) |
271 | if(gw.get_param("hts_id")!=OP.htc.get_value()) |
271 | throw opkele::exception(OPKELE_CP_ "toying around, huh?"); |
272 | throw opkele::exception(OPKELE_CP_ "toying around, huh?"); |
272 | OP.checkid_(inm,0); |
273 | opkele::sreg_t sreg; |
| |
274 | OP.checkid_(inm,sreg); |
273 | OP.cookie_header(cout); |
275 | OP.cookie_header(cout); |
274 | opkele::openid_message_t om; |
276 | opkele::openid_message_t om; |
@@ -279,7 +281,11 @@ int main(int argc,char *argv[]) { |
279 | OP.select_identity( get_self_url(gw), get_self_url(gw) ); |
281 | OP.select_identity( get_self_url(gw), get_self_url(gw) ); |
280 | } |
282 | } |
| |
283 | sreg.set_field(opkele::sreg_t::field_nickname,"anonymous"); |
| |
284 | sreg.set_field(opkele::sreg_t::field_fullname,"Ann O'Nymus"); |
| |
285 | sreg.set_field(opkele::sreg_t::field_gender,"F"); |
| |
286 | sreg.setup_response(); |
281 | cout << |
287 | cout << |
282 | "Status: 302 Going back to RP with id_res\n" |
288 | "Status: 302 Going back to RP with id_res\n" |
283 | "Location: " << OP.id_res(om).append_query(OP.get_return_to()) |
289 | "Location: " << OP.id_res(om,sreg).append_query(OP.get_return_to()) |
284 | << "\n\n"; |
290 | << "\n\n"; |
285 | }else{ |
291 | }else{ |
|