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
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
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
aaron levin
f6bdfa3c05
Implement Basic Auth with Config Tooling
...
Extend the Config tooling to allow an implementation with Basic
Authentication.
2016-01-07 22:51:16 +01:00
Julian K. Arni
f8ea9ba8fe
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-07 12:51:30 +01:00
Julian K. Arni
e9db7f651c
Tests for Config.
2016-01-07 12:18:42 +01:00
Julian K. Arni
212f066736
Add Config parameter.
...
This allows combinator instances to receive dynamic data that isn't
constrained by the interface of Delayed etc.
2016-01-07 12:18:42 +01:00
Julian K. Arni
034a687c3f
Verb for -mock, -js and -foreign.
2016-01-06 18:20:20 +01:00
Julian K. Arni
1329904e55
Use Verb for servant-docs
2016-01-06 17:31:40 +01:00
Julian K. Arni
ebfae81b1f
Fix rebase issues.
2016-01-06 17:17:14 +01:00
Julian K. Arni
7aaf921252
Remove unnecesary () AllMimeRender instance.
2016-01-06 17:13:22 +01:00
Julian K. Arni
59b220c29c
Update CHANGELOG for Verbs change.
2016-01-06 17:13:21 +01:00
Julian K. Arni
6c6b438b31
Don't override status code on empty body.
2016-01-06 17:13:21 +01:00
Julian K. Arni
7af0547a62
Add descriptive type synonyms for success responses.
2016-01-06 17:13:21 +01:00
Julian K. Arni
c27efeca7e
Simplify verb combinators.
...
Create a single 'Verb' combinator with parameters for status code and
method. Make existing combinators type synonyms of 'Verb'.
2016-01-06 17:13:21 +01:00
Julian Arni
ec60b5503d
Merge pull request #315 from luigy/removeOverlappingNoise
...
Remove Overlapping pragma noise using CPP
2016-01-05 15:01:07 +01:00
Luigy Leon
17fcc25d87
add include header files to extra-source-files
2016-01-04 23:05:05 -05:00
Luigy Leon
8a497c473c
delete extra committed header files
2016-01-04 23:03:26 -05:00
Luigy Leon
9585598f30
Merge branch 'jkarni/removeOverlappingNoise' of https://github.com/haskell-servant/servant into removeOverlappingNoise
2016-01-04 13:53:39 -05:00
Julian K. Arni
79d4f944a4
less OverlappingInstances noise
2016-01-04 13:09:11 -05:00
Julian Arni
41d5a5d943
Merge pull request #314 from haskell-servant/jkarni/bump-wai-warp
...
Bump wai and warp upper bound to < 3.3.
2016-01-04 18:31:22 +01:00
Julian K. Arni
a4a0f1988b
Bump wai and warp upper bound to < 3.3.
2016-01-04 17:21:14 +01:00
Julian K. Arni
e7c9084917
less OverlappingInstances noise
2015-12-27 17:54:29 +01:00
Julian Arni
9cc344b95b
Merge pull request #308 from haskell-servant/jkarni/linkHttpApiData
...
Add ToHttpApiData instance for Link.
2015-12-27 12:51:17 +01:00
Julian K. Arni
8b3258a0c1
Add ToHttpApiData instance for Link.
2015-12-27 02:20:46 +01:00
Julian Arni
4a03c6e8b5
Merge pull request #306 from haskell-servant/jkarni/env-bash
...
Use env bash rather than /bin/bash.
2015-12-25 16:18:46 +01:00
Julian Arni
5b3477ebd4
Merge pull request #304 from luke-clifton/master
...
MimeUnrender and MimeRender instances for Cassava
2015-12-25 15:52:32 +01:00
Julian K. Arni
1ea1340c5c
Use env bash rather than /bin/bash.
2015-12-25 15:50:28 +01:00
Luke Clifton
130fd27e01
Conditionally include Control.Applicative <$>
2015-12-22 22:03:46 +11:00
Luke Clifton
57fe12ce84
MimeUnrender and MimeRender instances for Cassava
...
This allows the same API type to be used for `serve` and `client`.
2015-12-22 15:48:49 +11:00
Julian Arni
5e215cef68
Merge pull request #299 from xor-xor/docs-redundant-imports
...
[servant-docs] Removed redundant imports.
2015-12-20 18:31:21 +01:00
Tomasz Mieszkowski
69a4a8d4f6
[servant-docs] Removed redundant imports.
2015-12-20 17:56:11 +01:00
Alp Mestanogullari
3020c365fa
Merge pull request #298 from atn34/patch-1
...
Fix broken link in servant-docs' README
2015-12-19 12:25:02 +01:00
Andrew Noyes
56beed459c
Fix broken link
2015-12-18 16:56:37 -08:00
Julian Arni
1bb4292d97
Merge pull request #295 from haskell-servant/jkarni/293fix
...
Fix loop in IsSubList
2015-12-16 14:11:08 +01:00
Julian K. Arni
b20edfd96a
Fix loop in IsSubList
...
See #293 .
2015-12-16 13:41:18 +01:00
Julian K. Arni
82deaeb63c
Test cases for bad links.
2015-12-16 13:39:52 +01:00
Julian Arni
3429870120
Merge pull request #289 from mitchellwrosen/master
...
Add 'pretty' to servant-docs
2015-12-10 23:48:30 +01:00
Julian Arni
bf8959d2d7
Merge pull request #287 from arianvp/285
...
WIP: Fix issue #285
2015-12-10 23:44:25 +01:00
Mitchell Rosen
f1a6a2a151
Move 'pretty' to its own module
2015-12-10 12:27:15 -08:00