Commit graph

903 commits

Author SHA1 Message Date
aaron levin
756cd842da Add to changelog 2015-12-20 22:41:05 +01:00
aaron levin
948951b6e9 Add authentication to servant-client 2015-12-20 22:41:05 +01:00
aaron levin
3f5106da77 CHANGELOG entries for servant and servant-server 2015-12-20 22:41:05 +01:00
aaron levin
c7da1ba9dc Small haddocks changes for authentication 2015-12-20 22:41:05 +01:00
aaron levin
5bbedb838d Fix spelling issues in auth-combinator 2015-12-20 22:41:05 +01:00
aaron levin
65bfa1d844 Remove derived 'Show' instance for 'RR' 2015-12-20 22:41:05 +01:00
aaron levin
4cb14a6659 Remove 'Show' instance for RouteMismatch 2015-12-20 22:41:05 +01:00
Alp Mestanogullari
c782266d15 fix another build error 2015-12-20 22:41:05 +01:00
Alp Mestanogullari
c7caebad59 fix some build errors on 7.8/7.10 2015-12-20 22:41:05 +01:00
aaron levin
842dc1d934 explicitly import 'mempty' for GHC 7.8.4 2015-12-20 22:41:05 +01:00
aaron levin
d692c05cdb Use new strictProtect (arguments were flipped) 2015-12-20 22:41:05 +01:00
aaron levin
961c08bdac Swap AuthHandlers and subserver placement
if subserver is last it makes it easier to work with.
2015-12-20 22:41:05 +01:00
aaron levin
167e70351b Fix authentication example 2015-12-20 22:41:05 +01:00
aaron levin
19d931d8ba Update tests for new authentication framework 2015-12-20 22:41:05 +01:00
aaron levin
db0931941b Cleanup import failures and compiler warnings 2015-12-20 22:41:05 +01:00
Andres Loeh
4c83843489 Second Iteration of Authentication
Implemented with the AuthProtected data family as per alp's suggestion.

(during rebase, removed monoid instance for RouteResult)
2015-12-20 22:41:05 +01:00
aaron levin
42d0234cdc Add BasicAuth tests 2015-12-20 22:41:05 +01:00
aaron levin
bc10a9a127 Authentication cleanup 2015-12-20 22:41:05 +01:00
aaron levin
bde02d5f45 First attempt at BasicAuth combinators
Add `authVal` to BasicAuth, assist type inference

Type inference is difficult with `BasicAuth` and  `BasicAuthLookup`.
This is because `BasicAuthLookup` introduces a type variable `authVal`
and is not bound to anything when used in the context of `HasServer`'s
type.

Servant compiles (temp commit - delete)
2015-12-20 22:41:05 +01:00
aaron levin
001f8de754 improved description of BasicAuth lookup 2015-12-20 22:41:05 +01:00
aaron levin
e48052bf27 Add word8 dependency 2015-12-20 22:41:05 +01:00
aaron levin
11583d8ed4 Add base64-bytestring dependency for basic auth 2015-12-20 22:41:05 +01:00
aaron levin
41781e728a Add BasicAuth data type 2015-12-20 22:41:05 +01: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
Mitchell Rosen
702c2cec7d Add 'pretty' 2015-12-09 18:38:31 -08:00
Arian van Putten
cf475c26c9 WIP: Fix issue #285 2015-12-06 12:40:27 +01:00
Arian van Putten
60f1ddb89e WIP: Fix issue #285 2015-12-06 12:22:18 +01:00
Julian Arni
69c9ca437a Merge pull request #284 from kantp/relax-upper-bound-http-api-data
Relax upper version bound for http-api-data ...
2015-12-04 20:32:56 +01:00
Philipp Kant
da5c273640 Relaxed upper version bound for http-api-data ...
... in order to include http-api-data-0.2.1, which is currently in LTS
Haskell (lts-3.16).
2015-12-03 14:13:50 +01:00
Denis Redozubov
1bd2d913de Merge pull request #277 from MaxOw/master
Type information in servant-foreign.
2015-12-03 01:00:45 +03:00
Maksymilian Owsianny
721151a32d Added default NoTypes parameter for dynamic languages. 2015-12-02 15:56:56 +00:00
Maksymilian Owsianny
83600d5326 Added myself as co-author. 2015-12-02 14:26:45 +00:00
Maksymilian Owsianny
0f42e0a7f0 Add documentation of 'HasForeignType'. 2015-12-02 14:10:30 +00:00
Maksymilian Owsianny
0c0c382ae6 Fix broken servant-js tests. 2015-12-02 13:22:01 +00:00
Maksymilian Owsianny
b6ee20dfe0 Fix to support GHC < 710 2015-12-02 13:02:05 +00:00
Maksymilian Owsianny
e56fc650c2 Added test spec for servant-foreign. 2015-12-02 12:28:04 +00:00
Maksymilian Owsianny
2d8db45907 Moved GenerateList to servant-foreign. 2015-12-02 11:21:37 +00:00
Julian Arni
6dac6e831c Merge pull request #279 from sestrella/fix_broken_link
[servant-js] README-md - Fix broken link
2015-12-01 08:52:32 +01:00
Sebastián Estrella
38cb32cda6 [servant-js] README-md - Fix broken link 2015-12-01 00:38:37 -05:00
Maksymilian Owsianny
69f09f2622 Added lang parameter. 2015-11-29 04:53:50 +00:00
Maksymilian Owsianny
0b37222733 Fix servant-js based on changes to servant-foreign. 2015-11-28 08:24:55 +00:00