aaron levin
436046eb33
Remove deepseq dependency
2016-01-16 19:07:54 +01:00
aaron levin
8e1bed96c6
Update auth combinators across projects, fix build
2016-01-16 18:32:00 +01:00
aaron levin
5cc78b435a
Remove user type for more idiomatic auth combinators
2016-01-16 18:31:26 +01:00
aaron levin
9decfee68b
Remove unneeded tag from BasicAuth
2016-01-16 18:09:10 +01:00
aaron levin
2e7778d1d6
Merge commit '8ecc3f07064a3a627b8e49fb182789c82cd9c5d7' into jkarni/config
2016-01-16 17:46:23 +01:00
Sönke Hahn
8ecc3f0706
server: added Config machinery
2016-01-16 17:05:25 +01:00
Alp Mestanogullari
e7b80e96fd
Merge pull request #331 from haskell-servant/jkarni/security-issues
...
How to report security issues.
2016-01-16 13:34:19 +01:00
Julian K. Arni
3bc4e17309
How to report security issues.
2016-01-15 11:50:00 +01:00
Julian Arni
a3339f11bf
Merge pull request #328 from haskell-servant/shahn/doc-tweak
...
server/docs: fix formatting inconsistency
2016-01-15 11:12:46 +01:00
Sönke Hahn
c6e0ccbc2f
server/docs: fix formatting inconsistency
2016-01-14 23:58:48 +01:00
Julian Arni
385ea2686b
Merge pull request #326 from haskell-servant/jkarni/mock-build-example
...
Mock PolyKinds
2016-01-14 09:59:28 +01:00
Julian K. Arni
5a7fe76629
Add polykinds to servant-mock
2016-01-13 17:32:57 +01:00
Julian K. Arni
7f9758314e
Build mock example by default.
...
So that CI reports errors.
2016-01-13 17:06:20 +01:00
Julian Arni
f97cbf0ce8
Merge pull request #320 from haskell-servant/add-ghci-for-servant
...
add servant/.ghci
2016-01-13 16:58:32 +01:00
Julian Arni
f8d030804f
Merge pull request #324 from haskell-servant/jkarni/docsHeaderFix
...
Re-add missing Header instance for docs.
2016-01-13 16:57:15 +01:00
Julian K. Arni
37afddf3a2
Re-add missing Header instance for docs.
2016-01-11 13:37:20 +01:00
aaron levin
9e71d083e5
Fix post-merge build
2016-01-10 12:42:06 +01:00
aaron levin
1146d15f52
Merge branch 'shahn/config' into jkarni/config
2016-01-10 12:28:48 +01:00
aaron levin
eafc5d33bb
Rename HList append from .: to .:.
...
Avoids conflicting with Data.Aeson.((.:))
2016-01-10 11:43:07 +01:00
aaron levin
2633c6d213
Add tags file to .gitignore
2016-01-10 11:29:44 +01:00
aaron levin
96b4ea915f
Add auth support to servant-docs
2016-01-10 00:39:51 +01:00
aaron levin
f816ce30b3
Add authentication tests
2016-01-10 00:07:41 +01:00
aaron levin
9ffd709391
Add auth tests to servant-client
2016-01-09 19:15:35 +01:00
aaron levin
f9dcbdd7d4
obviate need for data families
2016-01-09 17:54:09 +01:00
aaron levin
ffeeffe745
Add auth support for servant-client
2016-01-09 17:34:27 +01:00
aaron levin
970af450dd
Remove servant-server specific type from AuthProtect
...
the 'user' type is valid only for servant-server, so lets move it out of
the combinator. This means we need to use type families when
implementing the server.
2016-01-09 17:33:19 +01:00
Sönke Hahn
33cc9958ed
Merge remote-tracking branch 'origin/master' into shahn/config
...
Conflicts:
servant-server/test/Servant/ServerSpec.hs
2016-01-09 13:00:42 +01:00
Sönke Hahn
4384c1df07
remove debugging print
2016-01-09 12:34:52 +01:00
Julian Arni
357cc839b6
Merge pull request #276 from haskell-servant/jkarni/emptyWithHeaders
...
Consolidate verbs
2016-01-08 20:22:02 +01:00
Julian K. Arni
f9c61379c0
Refactor NoContent logic.
...
Now MimeRender and MimeUnrender instances are not needed.
2016-01-08 19:33:36 +01:00
Sönke Hahn
66628ca043
config: added Show instance
2016-01-08 18:15:01 +01:00
Julian K. Arni
f1b6603c52
Review fixes
2016-01-08 18:03:28 +01:00
Sönke Hahn
5c863b2043
remove unneeded instances
2016-01-08 17:25:40 +01:00
Sönke Hahn
d99bde5fcd
config: remove overlapping noise
2016-01-08 17:25:15 +01:00
Julian K. Arni
3cc3c5c986
Add HasCfg typeclass.
...
This is largely Aaron Levin's work. But it was done in a merge commit,
so couldn't be cherry-picked in a sensible way. Thanks Aaron!
2016-01-08 17:12:07 +01:00
Julian K. Arni
da171780b8
Tests for Config.
2016-01-08 17:12:07 +01:00
Julian K. Arni
207a807428
Add Config parameter.
...
This allows combinator instances to receive dynamic data that isn't
constrained by the interface of Delayed etc.
2016-01-08 17:12:07 +01:00
aaron levin
4865114330
BasicAuth should have a tag for config
...
Stop relying on the realm to be the tag.
2016-01-08 13:53:27 +01:00
aaron levin
95d994a5f5
Fix basic-auth imports in servant-example
2016-01-08 12:35:11 +01:00
aaron levin
683e100aed
Update auth-combinator to use new general AuthProtected
2016-01-08 12:34:57 +01:00
aaron levin
3db091db57
Export BasicAuth constructor in Servant.Server
2016-01-08 12:10:36 +01:00
aaron levin
4add914251
Specify kinds in BasicAuth and AuthProtect
2016-01-08 12:10:11 +01:00
aaron levin
752157a777
Export Basic & General Auth combinators from Servant.Server
2016-01-08 11:45:05 +01:00
aaron levin
9a94403d97
Rename AuthResult to BasicAuthResult
...
AuthResult is not extensible enough for more complex, homegrown
combinators
2016-01-08 11:43:58 +01:00
aaron levin
0764d9b84c
Add the generalized auth combinator
2016-01-08 11:35:26 +01:00
Sönke Hahn
feef8caea2
add servant/.ghci
2016-01-07 23:59:54 +01:00
aaron levin
38c3cb7045
Fix formatting and add more comments in basic-auth
2016-01-07 23:43:55 +01:00
aaron levin
1eed61517b
Add Basic Auth example
2016-01-07 23:38:47 +01:00
aaron levin
08cfe21393
Fix broken doc tests in Internal/Auth.hs
2016-01-07 23:00:34 +01:00
aaron levin
4e6a6c0ce6
Use BasicAuth realm as its Config tag.
...
For a given realm, there should only be one implementation, so the realm
already serves as a unique identifier to configure BasicAuth from the
Config perspective.
This makes for less noise in the BasicAuth type.
2016-01-07 22:57:37 +01:00