summaryrefslogtreecommitdiffabout
AgeCommit message (Collapse)AuthorFilesLines
2008-02-11removed obsoleted functions in test RPMichael Krelin1-28/+0
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-11allow to add prefix to generated htmlhiddensMichael Krelin2-6/+10
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-09OP fixesMichael Krelin1-3/+3
* allocate stateful handles when processing associate request * use the expiration from allocated handle, not empty shared_ptr Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-08minor fixes and making compiler a bit happierMichael Krelin16-77/+77
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-08a bit of doxygenation for prequeue_RPMichael Krelin1-1/+8
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-08renamed verify_op to verify_OPMichael Krelin4-4/+4
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-08further doxygenation of basic_OP, extension_t and verify_OPMichael Krelin3-0/+21
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-08further doxygenation of basic_OPMichael Krelin1-2/+75
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-08renamed basic_op class to basic_OPMichael Krelin5-29/+134
and doxygenated basic_OP a bit. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-08do not allocate stateless assoc ahead of timeMichael Krelin1-5/+4
that would just pollute the database Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-04reworked extensions frameworkMichael Krelin10-67/+121
* changed {checkid,id_res}_hook to {rp,op}_{checkid,id_res}_hook * deprecated older hooks, although implemented it in sreg and chain extensions * added extension processing to basic_op * added sreg to test OP Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-03openid 1 compatibility fix in OPMichael Krelin1-0/+1
I shouldn't be failing if there's no claimed_id field for OpenID 1 request. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-03added test OPMichael Krelin4-4/+452
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-03added verify_op that performs discovery on the relying partyMichael Krelin4-6/+73
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-03added provisions for discovery on RPMichael Krelin2-11/+39
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-03moved openid_endpoint_t to types.hMichael Krelin2-18/+18
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-03added return_to service type to uris.hMichael Krelin1-0/+1
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-02moved uri matching into separate procedureMichael Krelin3-32/+41
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-02added missing basic_op.h headerMichael Krelin1-0/+68
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-02check if return_to matches realmMichael Krelin2-0/+45
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-02first rough cut on OP 2.0 implementationMichael Krelin4-1/+350
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-02added util::attr_escapeMichael Krelin2-0/+26
escaping string for inclusion into x(ht)ml attributes Signed-off-by: Michael Krelin <hacker@klever.net>
2008-02-02generate html form hiddens from the openid messageMichael Krelin2-0/+22
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-31fixed kingate_openid_message code in test areaMichael Krelin1-2/+3
rethrow kingate's notfound exceptions as opkele ones. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-31test: moved kingate_openid_message wrapper into a separate .hMichael Krelin2-109/+109
again, to be used in sample OP Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-31added util::change_mode_message_proxy classMichael Krelin2-19/+20
generatlized checkauth_message_proxy and added it to util namespace. To be later used for constructing setup url in 1.0 checkid_immediate reply. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-30a few changes to the infrastructureMichael Krelin2-1/+20
* added mode_unknown to the mode_t enumeration * add to_keyvalues(ostream&) to openid message class * fixed openid_message_t::set_field for the case of overwriting Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-23check associate reply for consistencyMichael Krelin1-3/+6
Reject associate replies returning secret of inconsistent with association type length. This way severely broken OPs which return SHA1 association as SHA256 will still work in dumb mode. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-21Implement URI construction handling append='qxri' xrd:URI attribute.Michael Krelin2-8/+31
This is the right thing to do and may come in handy assisting OPs in improving UI. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-20summarized some changes in NEWSMichael Krelin1-0/+13
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-20test part rewrittenMichael Krelin17-155/+693
* cut down test.cc to only test rfc uri normalization * redone idiscover to only list discovered endpoints * added test RP cgi Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-20the whole library rewrittenMichael Krelin22-299/+1366
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-20defined sreg 1.1 openid namespace URIMichael Krelin1-0/+1
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-20opkele/iterator.h headerMichael Krelin1-0/+217
added a bunch of utility iterators * output and forward iterator proxies * filtering iterator * map key extracting iterator Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-20config header: define deprecation attributeMichael Krelin1-0/+4
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-20merging the private rewrite branch, configure.acMichael Krelin1-3/+45
* bump version. two leading components are getting in sync with OpenID protocol version now, which means it's going to be 2.0 by the time I finish 2.0 support. * add checks for some optional gcc features. * check for optional dependencies needed to build test RP CGI, namely - sqlite3, kingate, libuuid. * change XRI resolver proxy to non-beta https.
2008-01-13Merge branch 'next' into devel/openid20Michael Krelin1-1/+1
2008-01-13add libcurl includes to test MakefileMichael Krelin1-1/+1
Thanks to Martin Wilke of FreeBSD for spotting the problem. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-12fixed priority_map comparison functionMichael Krelin1-1/+1
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-06Revert "discovery: stop parser with XML_StopParser()" for nowMichael Krelin2-10/+7
This reverts commit 7bde7f66284b47a75bbceadc360e7f03550ace21. because some older expat version do not support this function I don't want to make it conditional for now. Conflicts: lib/discovery.cc Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-06Fix non-debug tidying.Michael Krelin1-1/+1
somehow I've managed to put too many tidying options into conditional. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-06configure: fixed typo in tidy lib detection error messageMichael Krelin1-2/+2
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-05made more robust html discovery by using htmltidyMichael Krelin2-13/+66
now when parsing document that we expect might be html we also save first 16K of the document to the buffer and if the parser choked we run the saved data through htmltidy and feed the output to the parser again. Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-05added htmltidy dependencyMichael Krelin6-3/+106
- added libtidy detection to configure - added tidy flags to libopkele.pc.in - added primitive wrapper classes - added tidy exception class Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-05discovery: stop parser with XML_StopParser()Michael Krelin2-8/+16
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-04exception specializationsMichael Krelin1-1/+29
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-04id_res_cancel and id_res_bad_nonce exceptionsMichael Krelin1-0/+18
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-04output thrown exceptions to clog streamMichael Krelin4-6/+37
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-04configurable -DNDEBUGMichael Krelin3-0/+14
Signed-off-by: Michael Krelin <hacker@klever.net>
2008-01-04exception fixes and enhancementsMichael Krelin1-1/+9
Signed-off-by: Michael Krelin <hacker@klever.net>