Felipe Lessa
8746b5eb4f
Fix acid-state's implementation of {insert,replace}Session.
2015-05-28 01:28:07 -03:00
Felipe Lessa
82b7ebdca4
Fix example on how to use acid-state backend.
2015-05-28 01:27:40 -03:00
Felipe Lessa
b446b0ea92
Add storage tests for acid-state, both memory and local storage.
2015-05-28 01:27:13 -03:00
Felipe Lessa
80f121f57b
Throw exceptions from persistent's {insert,replace}Session.
...
Now all tests are green for serversession-backend-persistent.
2015-05-28 00:48:44 -03:00
Felipe Lessa
8a6df8cc6c
Add persistent storage tests to using SQLite and PostgreSQL.
...
Currently failing tests:
1) SqlStorage on PostgreSQL insertSession throws an exception if a session already exists
2) SqlStorage on PostgreSQL replaceSession throws an exception if a session does not exist
3) SqlStorage on SQLite insertSession throws an exception if a session already exists
4) SqlStorage on SQLite replaceSession throws an exception if a session does not exist
2015-05-28 00:38:49 -03:00
Felipe Lessa
b19ddd1922
Add storage tests to MockStorage, fix bugs that were found.
2015-05-27 23:43:04 -03:00
Felipe Lessa
83faa561c8
New collection of generic storage tests.
2015-05-27 23:42:30 -03:00
Felipe Lessa
adf97f5d07
Use atomicModifyIORef instead of readIORef.
...
<http://hackage.haskell.org/package/base-4.8.0.0/docs/Data-IORef.html#g:2 >
2015-05-27 23:21:23 -03:00
Felipe Lessa
060187f997
New StorageException, clarify corner cases of storage methods.
2015-05-27 23:07:31 -03:00
Felipe Lessa
26d7aa5e47
Add more tests to the core.
2015-05-27 16:19:11 -03:00
Felipe Lessa
b7a063e1ee
Add useful instances to some core structures.
2015-05-27 16:18:54 -03:00
Felipe Lessa
235bdc9a70
Initial work on test suites.
...
Bug fix from 9385651 was already a result of it.
2015-05-27 12:23:16 -03:00
Felipe Lessa
9385651dcd
Base64 is case sensitive.
2015-05-27 11:25:51 -03:00
Felipe Lessa
2415e19316
Initial stab at serversession-frontend-wai.
2015-05-27 00:08:14 -03:00
Felipe Lessa
42e42f7f42
Typos.
2015-05-26 02:50:50 -03:00
Felipe Lessa
3a56d222a8
First stab at a Redis backend.
2015-05-26 02:23:33 -03:00
Felipe Lessa
95194a09ca
Fix URL references.
2015-05-26 01:00:20 -03:00
Felipe Lessa
351edac473
Add "Limitations" to main README.
2015-05-26 00:58:20 -03:00
Felipe Lessa
01c79cd0b5
New serversession-frontend-snap package.
2015-05-26 00:53:38 -03:00
Felipe Lessa
15361007ec
Fix yesod's createCookie's incomplete doc.
2015-05-26 00:52:49 -03:00
Felipe Lessa
c2bd20cd56
Add acid-state to main README, include better example of usage.
2015-05-25 22:09:25 -03:00
Felipe Lessa
591a525f53
Add note about versioning.
2015-05-25 21:47:13 -03:00
Felipe Lessa
bac54a5c70
New serversession-backend-acid-state package.
2015-05-25 21:31:47 -03:00
Felipe Lessa
c44e5c6103
New AuthId type synonym.
2015-05-25 21:23:06 -03:00
Felipe Lessa
fef17ea919
Avoid importing from Web.ServerSession.Core.Internal.
2015-05-25 20:01:28 -03:00
Felipe Lessa
e5203db715
Support for HttpOnly and Secure attributes on the core.
2015-05-25 19:57:43 -03:00
Felipe Lessa
c2afd3e1a5
Support for idle timeouts, absolute timeouts and non-persistent cookies.
2015-05-25 19:48:12 -03:00
Felipe Lessa
35ff03dfce
Add timeouts to State, not implemented yet.
2015-05-25 18:57:45 -03:00
Felipe Lessa
e27b932c17
Add note about J2EE's invalidate.
2015-05-25 18:57:17 -03:00
Felipe Lessa
f59656bc98
Make setAuthKey more easily composable.
2015-05-25 18:57:04 -03:00
Felipe Lessa
7ab8500d22
Set the cookie name on State instead of leaving to frontends.
2015-05-25 18:56:25 -03:00
Felipe Lessa
d462d61b32
Use ConnectionPool type synonym, same as Yesod's scaffold.
2015-05-25 18:54:20 -03:00
Felipe Lessa
fe0e29e06e
Fix serversession-frontend-yesod except for expiration.
2015-05-25 16:26:36 -03:00
Felipe Lessa
8115d6ede4
Remove mentions of Yesod from the core package.
2015-05-25 16:20:19 -03:00
Felipe Lessa
3a6b1fbaa9
Markdown is not Haddock.
2015-05-23 01:44:11 -03:00
Felipe Lessa
71aff2dd94
Separate into three different packages.
...
serversession and serversession-backend-persistent build,
serversession-frontend-yesod is broken.
2015-05-23 01:42:13 -03:00
Felipe Lessa
e5f2a4d87a
Rename package to serversession.
2015-05-22 23:49:46 -03:00
Felipe Lessa
916de034ad
Code from branch that lived on yesod's repo.
2015-05-22 23:34:24 -03:00