Commit Graph

318 Commits

Author SHA1 Message Date
Evan Prodromou
d4341f03c2 add submit class to all buttons
darcs-hash:20080618163516-84dde-ab4d9daa4180d75da0813bed03f6c824577a87a0.gz
2008-06-18 12:35:16 -04:00
Evan Prodromou
d9b7f0b706 fix debug to prefix with var name
darcs-hash:20080618162838-84dde-90e6950d9cdfcfee947f504512b7fb529d0db7de.gz
2008-06-18 12:28:38 -04:00
Evan Prodromou
71aadefc3e more debugging output, better check on canonical
darcs-hash:20080618162715-84dde-9a3213796a88cf4f28597553e1834896c7f201a7.gz
2008-06-18 12:27:15 -04:00
Evan Prodromou
052e8eb7a4 better URLs for OpenID stuff
darcs-hash:20080618160733-84dde-cb233a9b2073b6333f2944682bb3ab0c1a7a547a.gz
2008-06-18 12:07:33 -04:00
Evan Prodromou
71dab316c3 better presentation on openidsettings
darcs-hash:20080618160111-84dde-70cc4c0a40f14aa6a5f7b05f6b8a8947bb5025f7.gz
2008-06-18 12:01:11 -04:00
Evan Prodromou
30c3cd552b fixup syntax error in openid.php
darcs-hash:20080618150557-84dde-61120bcf12e9ecfaafda079d1a943c75f99f5930.gz
2008-06-18 11:05:57 -04:00
Evan Prodromou
23c0b1f482 move openid authentication to a common function
darcs-hash:20080618133251-84dde-40c6326cb27ac20e52ef456a3f05e111c6fae97c.gz
2008-06-18 09:32:51 -04:00
Evan Prodromou
d0559fdf4d debugging for addopenid problem
darcs-hash:20080618132613-84dde-a7d78778af37cf3f20bfeb70ae2d381bc9ae92d4.gz
2008-06-18 09:26:13 -04:00
Evan Prodromou
1a112c11b7 change variable name error
darcs-hash:20080618131636-84dde-ef33dcb94c630fdd8831d904caadb9e669ce6cb3.gz
2008-06-18 09:16:36 -04:00
Evan Prodromou
c3adb121ec references
darcs-hash:20080618131519-84dde-a3af7c41be8d9606f39ce4be3029697f913ab053.gz
2008-06-18 09:15:19 -04:00
Evan Prodromou
65816a6e2f fix syntax error in finishopenidlogin
darcs-hash:20080618123941-84dde-ec6e2fdef8c561714e509dc47e14aa47c58a9c44.gz
2008-06-18 08:39:41 -04:00
Evan Prodromou
4a0b1a9ea9 consolidate linking a user to an OpenID
darcs-hash:20080618114310-84dde-15b224bb16d434150af457bc3b08de58e3833abd.gz
2008-06-18 07:43:10 -04:00
Evan Prodromou
dc2e7f4225 voodoo changes
darcs-hash:20080618113720-84dde-4483d18751e7f82480c925cce4d1f84095598742.gz
2008-06-18 07:37:20 -04:00
Evan Prodromou
d1a895c5b1 return true on successful save of openid
darcs-hash:20080618112624-84dde-76bbb4338585852abef7ed6ced26784a77f01a34.gz
2008-06-18 07:26:24 -04:00
Evan Prodromou
c5e8828d7e error on save
darcs-hash:20080618111512-84dde-835a9d92386c5a5a5e51b0879c04575e9a80fdf5.gz
2008-06-18 07:15:12 -04:00
Evan Prodromou
9eb05720a1 debugging on adding OpenID
darcs-hash:20080618110853-84dde-b24a19acffad53362a80c92f1dddafab37a457c6.gz
2008-06-18 07:08:53 -04:00
Evan Prodromou
ec68ae3cb1 better error handling
darcs-hash:20080618071207-84dde-a7903c5a806e16a39101244ef721204a7ce2bd46.gz
2008-06-18 03:12:07 -04:00
Evan Prodromou
7a17d1c477 dot not comma
darcs-hash:20080618070710-84dde-bcf4cce6586cf22909659efefc410dded33204c3.gz
2008-06-18 03:07:10 -04:00
Evan Prodromou
eae70d5292 manage existing OpenIDs
Add a settings page to manage existing OpenIDs, or add OpenIDs to an
account.

darcs-hash:20080618065320-84dde-d013191a57a3de66a038feb88ad46ceff1e986ca.gz
2008-06-18 02:53:20 -04:00
Evan Prodromou
f08a99e5f1 fix missing parens
darcs-hash:20080618062059-84dde-f3d27969a876fd89c5f01fb690ca367a51ec1b5e.gz
2008-06-18 02:20:59 -04:00
Evan Prodromou
3bd2513c0b go to profile instead of profile settings
darcs-hash:20080618061833-84dde-e77ea989a6caaf1d6722d6e82c1bcd04da44f486.gz
2008-06-18 02:18:33 -04:00
Evan Prodromou
94c4262dcf set nickname correctly
darcs-hash:20080618061117-84dde-6983ed79c2d0e985fc8b00ac7c270b46d92bc20d.gz
2008-06-18 02:11:17 -04:00
Evan Prodromou
21463458c5 fix get_saved_values() function in finishopenidlogin
darcs-hash:20080618060549-84dde-d32f1f167a69ea4f98f6a4a2f2ac753675e8cafd.gz
2008-06-18 02:05:49 -04:00
Evan Prodromou
66a1a13435 refactoring error
darcs-hash:20080618055836-84dde-7a0c460ec125581b659df39c8a079b9fcdc8dbaa.gz
2008-06-18 01:58:36 -04:00
Evan Prodromou
4000840243 check existence of args not booleanness
darcs-hash:20080618055657-84dde-269a234dd68867ca4f159031fe206e31131ef108.gz
2008-06-18 01:56:57 -04:00
Evan Prodromou
cba4168d62 fix prompt and debug input
darcs-hash:20080618055349-84dde-8ac49632d06a7b271d13912d46d26c7c1f1ec793.gz
2008-06-18 01:53:49 -04:00
Evan Prodromou
252c4098c4 finish openid
Added some code to make finishing the OpenID login work.

Changed the OID storage so that there's a "canonical" URL and a
display URL. This is because of i-names, which is annoying.

If the login succeeds, we try to find a local user associated with the
canonical URL. If they don't exist, we let the user either create a
new account, or login to an existing account and connect to it.

A totally unrelated change is that the DB engine now uses InnoDB.

darcs-hash:20080618052638-84dde-909e51dbd5b9eadadf18cd010868baa18ea2349a.gz
2008-06-18 01:26:38 -04:00
Evan Prodromou
e468474fe8 more debugging on profile update
darcs-hash:20080615153123-84dde-6153ed4ad0cce6908a103a507e6f6ffcf23620f2.gz
2008-06-15 11:31:23 -04:00
Evan Prodromou
1a591681b0 what exactly are we updating
darcs-hash:20080615152047-84dde-eca46b9a1e3e0adb81a29d1b43bf87ee93e4f535.gz
2008-06-15 11:20:47 -04:00
Evan Prodromou
4493433611 close function call in javascript
darcs-hash:20080617152444-84dde-726e19c7b503143b201b9008b21768729603c302.gz
2008-06-17 11:24:44 -04:00
Evan Prodromou
17504d0180 fixup &
darcs-hash:20080617152051-84dde-bc311c05a6cb15cdc5ac52f56964fa98f42f3927.gz
2008-06-17 11:20:51 -04:00
Evan Prodromou
25f0f9edbf inclusion of our local OpenID lib
darcs-hash:20080617145140-84dde-76c88b7b9cc8caf54d8f8b60fe7fbd3bb0ad2c39.gz
2008-06-17 10:51:40 -04:00
Evan Prodromou
43d0c82c9c beginnings of OpenID login
darcs-hash:20080617144942-84dde-a2a1040a42254903a64cff0aae3c1912ed951473.gz
2008-06-17 10:49:42 -04:00
Evan Prodromou
c02a01914a start openid rp integration
darcs-hash:20080617133501-84dde-adec156ac58b84cce41ae0e9bde58cf7637e6c42.gz
2008-06-17 09:35:01 -04:00
Evan Prodromou
024dc6c098 email notification on new subscriptions
darcs-hash:20080615030202-84dde-ebed7919c227ce280dc818f301e15001eb8b5926.gz
2008-06-14 23:02:02 -04:00
Evan Prodromou
596b386a95 show default profile image in showstream
darcs-hash:20080615014742-84dde-d39f4c7744dc430fdb4ad64a172ffe3e909ee4a0.gz
2008-06-14 21:47:42 -04:00
Evan Prodromou
2fcae93272 take out public from views menu for now
darcs-hash:20080614122517-84dde-c78fbdd9c3329e87f405040e851650a81ab63d5c.gz
2008-06-14 08:25:17 -04:00
Evan Prodromou
52205fc6be no arg
darcs-hash:20080614122155-84dde-81e6de701ce6e7171a252b0b8ad442373b3bb24a.gz
2008-06-14 08:21:55 -04:00
Evan Prodromou
27a615aefd add public tab
darcs-hash:20080614122038-84dde-af7c2be04d41c1d85b62cf74724fe8e4a877a84a.gz
2008-06-14 08:20:38 -04:00
Evan Prodromou
8ba7e8cb76 function for retrieving a config variable
darcs-hash:20080613175344-84dde-253b5b55ea8ae85b807cba2e23ea885c6bbb0b8f.gz
2008-06-13 13:53:44 -04:00
Evan Prodromou
8ba36458ef update TODO, and add variables to docs
darcs-hash:20080613171538-84dde-ffd6abee1ae304e55f4ff4224dfebf4be8fff0fd.gz
2008-06-13 13:15:38 -04:00
Evan Prodromou
1d8aa56808 mark off TODO, only local notices in public stream
darcs-hash:20080613152420-84dde-76da80c7345815986ee47fab45dcbde2bad895ab.gz
2008-06-13 11:24:20 -04:00
Evan Prodromou
ad7aa68a99 links for subscribers and subscribed in showstream
darcs-hash:20080612200424-84dde-b96bf533612308e0ecd695365802f3da3f2601a4.gz
2008-06-12 16:04:24 -04:00
Evan Prodromou
47c3e474be only validate if values are sent
darcs-hash:20080612195324-84dde-cab5efa3218f3cd3632ced1c819a5be2edb3c5a0.gz
2008-06-12 15:53:24 -04:00
Evan Prodromou
3491bb2df7 catch errors in debug log
darcs-hash:20080612193945-84dde-2c368ba1273814401f741ef79333c0cd8a43f90d.gz
2008-06-12 15:39:45 -04:00
Evan Prodromou
4449ff2051 only show "more subscriptions" link if there really are more subscriptions
darcs-hash:20080612192650-84dde-3bab08162d9e1e6def8712070c509306227ee645.gz
2008-06-12 15:26:50 -04:00
Evan Prodromou
c2a170da10 broadcast profile and change subscription input id
darcs-hash:20080612184028-84dde-1f919ab373e5731efd403986ae760116769566d9.gz
2008-06-12 14:40:28 -04:00
Evan Prodromou
aaf0786bef link for website
darcs-hash:20080612174453-84dde-035da48b74c9148d6dbdd4650c713f434419e9e6.gz
2008-06-12 13:44:53 -04:00
Evan Prodromou
2354faf7ac add instructions to each form entry in forms
darcs-hash:20080612165201-84dde-1abc45a0b2fd24002bc6f3449e9fc521d4f02eac.gz
2008-06-12 12:52:01 -04:00
Evan Prodromou
f7c89d6f60 start changing default theme to work with new HTML
darcs-hash:20080612015858-84dde-28a67b8a2204cd23ef2fe78ffa19ca1ded13887f.gz
2008-06-11 21:58:58 -04:00
Evan Prodromou
f745c55622 double-showing notice form and views menu
darcs-hash:20080611184128-84dde-2671b7837a6285840cbc70d301241cbcd51bb711.gz
2008-06-11 14:41:28 -04:00
Evan Prodromou
d0f8fd20fb push notice form and sub-menu into header div
darcs-hash:20080611183634-84dde-97119e7ef1abb01f6ce8723955dc5d6e06e644a8.gz
2008-06-11 14:36:34 -04:00
Evan Prodromou
f4ed605998 only show notice form if user is logged in, looking at own page
darcs-hash:20080611181334-84dde-e9045179a94f8c78af9d660c57a37ce6f5fc9776.gz
2008-06-11 14:13:34 -04:00
Evan Prodromou
0ef5157800 reminder about site license in avatar upload process
darcs-hash:20080611163645-84dde-f50f3f9b8230390565485d449a22dfddefd8f61d.gz
2008-06-11 12:36:45 -04:00
Evan Prodromou
f81b4421fe instructions
darcs-hash:20080611163308-84dde-c918f04fe6bba3dd382b822ef59cb70a57bb9504.gz
2008-06-11 12:33:08 -04:00
Evan Prodromou
9f39fd31af menu on home and profile
darcs-hash:20080611155258-84dde-7afab3908ff3464975f8478fcd41f065466170ae.gz
2008-06-11 11:52:58 -04:00
Evan Prodromou
e4534d60be remove notice form from showstream
darcs-hash:20080611023246-84dde-cd0a768e95af336cada91fc28246ae4d100bb854.gz
2008-06-10 22:32:46 -04:00
Evan Prodromou
59cade2019 refresh on showstream
darcs-hash:20080611022900-84dde-63cade69e8f65fd067b5e0c54caac080e03df979.gz
2008-06-10 22:29:00 -04:00
Evan Prodromou
6ce7f932a6 fixup some TODOs, fix a bug in userauthorization
darcs-hash:20080611020810-84dde-32ab3b9e25532b92156d093dcf2ad24134cbcf4f.gz
2008-06-10 22:08:10 -04:00
Evan Prodromou
fba4b40e0a get the profile to show it in the title
darcs-hash:20080610222547-84dde-7606c2f575ba482fef17a9ef306789c047aaddec.gz
2008-06-10 18:25:47 -04:00
Evan Prodromou
10654ebf35 fix including stream in shownotice
darcs-hash:20080610222222-84dde-f17190f0da05f65ba0d0030d39c97dfec701b624.gz
2008-06-10 18:22:22 -04:00
Evan Prodromou
f6bf8a5870 make shownotice a stream of one notice
For display sake, make showing a single notice like showing a
stream with one notice in it.

darcs-hash:20080610221910-84dde-a3b2252625ac5392ff60f1e975350ed5d2d1145f.gz
2008-06-10 18:19:10 -04:00
Evan Prodromou
64b5b1902c canonicalization lowercases nicknames
darcs-hash:20080611141824-84dde-a1016e113f7ba0e32685d935cd57618c60db2265.gz
2008-06-11 10:18:24 -04:00
Evan Prodromou
644948fb1e new layout for all action
darcs-hash:20080610193305-84dde-ef9bfe958f79d8668f14302b22e098f2f8232bc1.gz
2008-06-10 15:33:05 -04:00
Evan Prodromou
74517da3f5 fixup for new theme design in public.php
darcs-hash:20080610192101-84dde-29ba2cc875b73131bbbbef4cbdfb17965df37677.gz
2008-06-10 15:21:01 -04:00
Evan Prodromou
dd0b341b64 first steps towards new skin
darcs-hash:20080610185238-84dde-c073065f5f802be39b97a23105613fac1eeb0bea.gz
2008-06-10 14:52:38 -04:00
Evan Prodromou
d16dabe54b geo namespace
darcs-hash:20080610150957-84dde-2aff9cb5f23c593f524e4affb5c3f67a7f06ce34.gz
2008-06-10 11:09:57 -04:00
Evan Prodromou
db29c22286 fix getting subscribers
darcs-hash:20080610145520-84dde-67e0480537053f7aacf18a8fb1f45e472e115493.gz
2008-06-10 10:55:20 -04:00
Evan Prodromou
02cb345154 close parens in showstream
darcs-hash:20080610144606-84dde-7c8b86d2954324e686eb5fe1ed9daeb4919a945c.gz
2008-06-10 10:46:06 -04:00
Evan Prodromou
9e6cb08b88 add link for FOAF autodiscovery
darcs-hash:20080610144420-84dde-b1904673a1afb56bef1a4f54e4432eb94aa03619.gz
2008-06-10 10:44:20 -04:00
Evan Prodromou
cb0dfba149 make presentation of remote subscribe nicer
darcs-hash:20080610143709-84dde-ce586d1ca5bb73bdeef8b254f8835f599b769714.gz
2008-06-10 10:37:09 -04:00
Evan Prodromou
e013c06346 undo fancy URLs for omb endpoints
The OAuth library uses the $_GET and $_POST arrays for checking
signatures on requests. So, we need to make sure that the client sees
the same request parameters as the server (or callback). These don't
have to be particularly readable URLs, anyways, since they're mostly
"behind the scenes".

darcs-hash:20080610123002-84dde-0bce005b77d053d22cfbba8e0743af1b49f151bb.gz
2008-06-10 08:30:02 -04:00
Evan Prodromou
d1fc067471 more specific fetchers
darcs-hash:20080610122707-84dde-403d9869ea32d629e60736822c6f06b0a56a070d.gz
2008-06-10 08:27:07 -04:00
Evan Prodromou
3e32106394 incorrectly used , instead of
darcs-hash:20080610121936-84dde-5e13dfc79beaac01ed795d37e11b02cad610051d.gz
2008-06-10 08:19:36 -04:00
Evan Prodromou
c73ebf3382 export FOAF
darcs-hash:20080610121132-84dde-f0f49c2e33c650e6cf91d3e31f595b0ee570e603.gz
2008-06-10 08:11:32 -04:00
Evan Prodromou
59db378c93 was using $notice->uri instead of $notice_uri
darcs-hash:20080606180330-84dde-be0e84696cd5e7304cd8523c0d7de9d6e402b73e.gz
2008-06-06 14:03:30 -04:00
Evan Prodromou
a578bfc03d push yadis requirement into omb.php
darcs-hash:20080606162659-84dde-fd7d5e030aa6aeebf61d0ea7b143aa7cafce7c45.gz
2008-06-06 12:26:59 -04:00
Evan Prodromou
2b842b5e45 call postnotice when there's a remote subscription
darcs-hash:20080606160437-84dde-25d2db21e059159751a27fd77f47764346029dd8.gz
2008-06-06 12:04:37 -04:00
Evan Prodromou
47047e84e7 stash URLs for return and check all values for profiles
darcs-hash:20080606065027-84dde-a4ac215010b76ef296976fdf8a94473bd80c7ffa.gz
2008-06-06 02:50:27 -04:00
Evan Prodromou
bc86e75682 forgot to require libs in accesstoken
darcs-hash:20080606064011-84dde-89cca620d3782dec77da804008ce391e17ec393e.gz
2008-06-06 02:40:11 -04:00
Evan Prodromou
15989d6c35 store URL rather than service in $omb for bounce back
darcs-hash:20080606063721-84dde-a843ac9ef5b48aa25d15125d4f0be3f0c2e6bfb1.gz
2008-06-06 02:37:21 -04:00
Evan Prodromou
9136d18327 debugging request for access token
darcs-hash:20080606062958-84dde-3568ba98526687d81873bff77385d214c50cddfb.gz
2008-06-06 02:29:58 -04:00
Evan Prodromou
5639c51892 debugging stuff in accesstoken action
darcs-hash:20080606062235-84dde-2af2ed6b90474beac139a740c49fa6eec6f61484.gz
2008-06-06 02:22:35 -04:00
Evan Prodromou
aefa900dd7 remember to sign access token request with request token
darcs-hash:20080606060000-84dde-30573475c9721e7763deccac1359439887ae8add.gz
2008-06-06 02:00:00 -04:00
Evan Prodromou
1ef5cf964e checks for user and sub in validate and better error check in remote save
darcs-hash:20080606055439-84dde-3abda48583737e89a9c75b3cff6722e9444d13a9.gz
2008-06-06 01:54:39 -04:00
Evan Prodromou
281dbc3177 debug info for authorizing token
darcs-hash:20080606053321-84dde-c6ee7a4565cce35873ad36890b609b90b65b472d.gz
2008-06-06 01:33:21 -04:00
Evan Prodromou
c5853abc39 handle errors in authorizing and saving remote profile
darcs-hash:20080606052631-84dde-4a8b4d8f70b0148d0b98b62875099f7d9cca9026.gz
2008-06-06 01:26:31 -04:00
Evan Prodromou
5fb2072bc9 use $_GET, not $args
darcs-hash:20080606052117-84dde-b9afe0037d9c75382f218f85eefec2a944e42dc6.gz
2008-06-06 01:21:17 -04:00
Evan Prodromou
c6f9e7c241 don't clone arrays!
darcs-hash:20080606051823-84dde-1ba6bdfe546b5307afd97c2c7715f8d35b464e83.gz
2008-06-06 01:18:23 -04:00
Evan Prodromou
9152085702 fix args in returnto
darcs-hash:20080606051331-84dde-1afe6e4a156cbb802b8b4231e065dc99ad07fef4.gz
2008-06-06 01:13:31 -04:00
Evan Prodromou
49111ecae8 listenee is nickname, not URI
darcs-hash:20080606043405-84dde-e365fd5a897990c446a4156ed3582081949fd891.gz
2008-06-06 00:34:05 -04:00
Evan Prodromou
87cf04255a debugging info on finished remote subscribe
darcs-hash:20080606040946-84dde-3a78ddbc700dcd2cb56ad3200b5658e07416096f.gz
2008-06-06 00:09:46 -04:00
Evan Prodromou
ec030076de show error correctly in login
darcs-hash:20080605200759-84dde-a1e8cc5c2c6a22da80f03ef692de9d0a8dcb29fc.gz
2008-06-05 16:07:59 -04:00
Evan Prodromou
56021d9572 move avatar scaling and saving to Avatar and Profile
Extracted the code for setting a new original avatar to the Profile
class, and moved some of it to Avatar, too. This makes it easier to
have the same functionality whether an avatar is set using the profile
settings (for our users), or on a remote subscription. Necessitated
changing the filenaming function to just take an ID.

darcs-hash:20080605193708-84dde-a441cc0474951ce7f1a1da9310b5145c0b7c3070.gz
2008-06-05 15:37:08 -04:00
Evan Prodromou
1cdb7919ef a
darcs-hash:20080605183419-84dde-debe7f18565c960ee6886ac1330833bc8ae1ca5f.gz
2008-06-05 14:34:19 -04:00
Evan Prodromou
356f401986 bad validation of callback URL
darcs-hash:20080605040358-84dde-b2018db43791d1cbed722d3320cd0b62d6da94eb.gz
2008-06-05 00:03:58 -04:00
Evan Prodromou
24ff61d159 decided to validate tag uris rather than not validating any uris
darcs-hash:20080605040153-84dde-5d180f0d8ead2fc7c5eaca3deaf035ba31d3512a.gz
2008-06-05 00:01:53 -04:00
Evan Prodromou
29d9f0ae64 don't validate listenee URI
Validation of the listenee URI was failing for tag: URIs. So,
abandoned validation for now. Maybe in the future I'll add it back in,
with a second check for a valid tag URI if it doesn't work.

darcs-hash:20080605033911-84dde-0cf77fad66198a790450183eba11028e153f43d1.gz
2008-06-04 23:39:11 -04:00
Evan Prodromou
1254761770 clear request doesn't need an argument
darcs-hash:20080605025611-84dde-18fcf515bb9c727cafd3ca44454e7f18d8f8e752.gz
2008-06-04 22:56:11 -04:00
Evan Prodromou
2bf7717ddd correct order of params in get_token
darcs-hash:20080605025152-84dde-54da3eba220432b71d14ef7cfd4a8a7bf664316f.gz
2008-06-04 22:51:52 -04:00