Commit Graph
2350 Commits
Author SHA1 Message Date
Joe Nelson 807e4b7787 Turn signup() into a plain sql function 2015-11-10 21:07:14 -08:00
Joe Nelson 91f15aa0e3 Use uuid type for token and name for role 2015-11-10 21:00:50 -08:00
Joe Nelson bda5f0a176 Match trigger names with their functions 2015-11-10 21:00:50 -08:00
Joe Nelson 86d992c21f Roles 2015-11-10 21:00:50 -08:00
Joe Nelson a508f8df37 Remove usernames, just use email 2015-11-10 21:00:50 -08:00
Joe Nelson 1b28f77854 Allow authors to see only themselves in /users 2015-11-10 21:00:50 -08:00
Joe Nelson c8479e792f Actual blog and row level security! 2015-11-10 21:00:50 -08:00
Joe Nelson 22fb13b30a Shorten login function to login 2015-11-10 21:00:50 -08:00
Joe Nelson 9daaf6ba70 s/logins/users 2015-11-10 21:00:50 -08:00
Joe Nelson 64172873e4 Explanation about split schemas 2015-11-10 21:00:50 -08:00
Joe Nelson 3a659843d2 Limit field lengths in logins
It is open to the public so people could abuse the storage

Also switch to text type everywhere
2015-11-10 21:00:49 -08:00
Joe Nelson 9fa16e2053 Handle missing "active" key in logins update
The default value of underlying column gets clobbered by triggers
2015-11-10 21:00:49 -08:00
Joe Nelson c25cd1b97e Use uuid-ossp extension rather than custom function 2015-11-10 21:00:49 -08:00
Joe Nelson 1e017b86d3 Drop trigger before (re)creating it 2015-11-10 21:00:49 -08:00
Joe Nelson 1524a4fe74 User management view and trigger 2015-11-10 21:00:49 -08:00
Joe Nelson d4ef343b8d Leave public functions in current schema
Put supporting things into basic_auth schema

Also tested from a clean db
2015-11-10 21:00:49 -08:00
Joe Nelson 2687ad63dd Basic tables/procs for basic auth 2015-11-10 21:00:49 -08:00
Joe Nelson 08fc83709c Merge pull request #352 from ruslantalpa/master
A simpler way for non haskell devs to install postgrest
2015-11-10 08:28:33 -08:00
Ruslan Talpa 92174dc0d2 modify build from source steps to also copy the bin to the right location (remove small comment) 2015-11-10 10:31:22 +02:00
Ruslan Talpa 2d72847d39 modify build from source steps to also copy the bin to the right location 2015-11-10 10:30:07 +02:00
Ruslan Talpa 1b402abaf2 Merge remote-tracking branch 'begriffs/v3' into v3 2015-11-10 10:22:06 +02:00
Joe Nelson 368bf34842 Merge pull request #345 from calebmer/feature/insecure-forbidden
Do not redirect insecure requests
2015-11-08 10:24:01 -08:00
calebmer c024687629 Remove secure flag entirely 2015-11-08 13:03:50 -05:00
Joe Nelson 4f7dd12133 Merge pull request #348 from xDAGRONx/homebrew
Add documentation for installing via Homebrew
2015-11-06 10:12:19 -08:00
JC Wilcox 8b16a1ee33 Add documentation for installing via Homebrew
Modify the server installation guide to include steps for installation
using Hombrew on OS X.
2015-11-06 10:23:33 -06:00
Joe Nelson e210283a70 Merge pull request #346 from begriffs/jwt-proc-return
Encode JWT when proc return types end in jwt_claims
2015-11-05 17:58:45 -08:00
Joe Nelson 3d2a78e962 Encode JWT when proc return types end in jwt_claims
Fixes it when the jwt_claims type is defined in a non-default schema
2015-11-05 17:46:33 -08:00
calebmer 34c153086c Do not redirect insecure requests 2015-11-05 17:42:48 -05:00
calebmer aab2f0d1f1 Ensure JWT expires 2015-11-05 17:04:54 -05:00
Ruslan Talpa cfad68f5cb Fix test 2015-11-04 16:28:22 +02:00
Ruslan Talpa 37b1d7d692 fix debian scripts to match current parameters 2015-11-04 16:23:02 +02:00
Ruslan Talpa 28b7b80bbb remove PUT from cors 2015-11-04 16:22:13 +02:00
Ruslan Talpa 14e806759d Revert to the old way of displaying the list of tables 2015-11-03 09:31:56 +02:00
Joe Nelson 5e9d29e07b Merge pull request #340 from ruslantalpa/master
Fix for #334
2015-11-02 17:27:33 -08:00
Ruslan Talpa 5113187bb1 changelog update and lint fix 2015-11-02 23:35:59 +02:00
Ruslan Talpa b3e88a37d3 Refacttoring 2015-11-02 23:31:35 +02:00
Joe Nelson 4803d7c828 Merge pull request #339 from ruslantalpa/v3
Refactor to add operators in just one place, @> and <@ operators for …
2015-11-02 09:44:06 -08:00
Ruslan Talpa ef08af359c Fix for #334 2015-11-02 14:44:45 +02:00
Ruslan Talpa 2e4c862d25 Refactor to add operators in just one place, @> and <@ operators for #338 and #181 2015-11-02 10:49:22 +02:00
Joe Nelson 6b118819d7 Merge pull request #337 from diogob/changes_stack_resolver
Changes stack resolver to nightly.
2015-11-01 15:15:11 -08:00
Diogo Biazus 2c1236652e Fixes hlint suggestions 2015-11-01 16:49:21 -05:00
Diogo Biazus 066d120c0e Changes stack resolver to nightly. 2015-10-31 12:01:26 -04:00
Joe Nelson 6b7e833023 Merge pull request #331 from ruslantalpa/v3
Code refactoring POST/PUT/PATCH to be more like GET and use internal data type
2015-10-31 00:02:39 -07:00
Joe Nelson 31c3edc183 Merge pull request #335 from PierreR/jsonb
Add a test case for issue #334
2015-10-30 13:10:51 -07:00
Pierre Radermecker 2cfe3651b4 Add a test case for issue #334 2015-10-30 19:16:59 +01:00
Ruslan Talpa 246c47dba4 cleanup 2015-10-30 12:19:35 +02:00
Ruslan Talpa 6fd0d5648f PUT path commented, DELETE rewritten, all statementT functions commented 2015-10-30 12:08:25 +02:00
Ruslan Talpa 738989c375 Cleanup 2 2015-10-29 16:22:31 +02:00
Ruslan Talpa 9458ee3292 Cleanup / Refactoring 2015-10-29 16:04:16 +02:00
Joe Nelson 1c22b8d429 Merge pull request #333 from diogob/fix_empty_set_returning_function
Fixes 500 when set returning function returns an empty row set [fix #332]
2015-10-28 10:57:05 -07:00