aaron levin
88974106b1
Update server for new Delayed type
2015-12-20 23:00:43 +01:00
aaron levin
b2103790b0
Remove warnings
2015-12-20 22:51:34 +01:00
aaron levin
c432891035
Update HasServer instances for auth lax/strict
2015-12-20 22:51:34 +01:00
aaron levin
ee1e0fe355
Delayed handler for Lax authentication
2015-12-20 22:51:32 +01:00
aaron levin
1aca415ec7
Use new Delayed type to capture authentication
2015-12-20 22:49:56 +01:00
Arian van Putten
667dbbc8cd
Make auth tests
2015-12-20 22:49:50 +01:00
Arian van Putten
dc699a93e0
Refine the jwt api
2015-12-20 22:49:50 +01:00
aaron levin
2b3df72fa2
Begin integrating upstream changes into auth
2015-12-20 22:49:50 +01:00
aaron levin
2424424ab2
servant-server: Remove unnecessary dependency on Common.Text
2015-12-20 22:49:50 +01:00
aaron levin
fff82de2d8
servant-foreign: Fix rebase changes
2015-12-20 22:49:47 +01:00
Arian van Putten
4965f1a113
Add instances for auth in servant-mock
2015-12-20 22:47:35 +01:00
Arian van Putten
6640ac358b
Add support for authentication to servant-foreign and servant-js
2015-12-20 22:47:32 +01:00
Arian van Putten
79ac58a33d
Solve extra merge conflicts
2015-12-20 22:41:06 +01:00
Arian van Putten
c64fa05611
Change JSON to be the bearing type of JWT auth.
...
This way both client and server can be the same API type.
2015-12-20 22:41:06 +01:00
Arian van Putten
a76b1f9e90
Export the auth stuff for jwt
2015-12-20 22:41:06 +01:00
Arian van Putten
51a68bd60d
Add JWT to servant-server
2015-12-20 22:41:06 +01:00
aaron levin
7616eff8b7
remove policy specificity and add lax endpoint
2015-12-20 22:41:06 +01:00
aaron levin
8dbc857c8e
Amend greet.hs to include authentication
2015-12-20 22:41:06 +01:00
aaron levin
d0ee287ba1
Properly export ToAuthInfo and AuthenticationInfo
2015-12-20 22:41:06 +01:00
aaron levin
bb88c786f0
Remove client-specific data from AuthInfo
2015-12-20 22:41:06 +01:00
aaron levin
39d20f51d8
Update CHANGELOG
2015-12-20 22:41:06 +01:00
aaron levin
b0b652a237
serant-docs support for Authentication
2015-12-20 22:41:06 +01:00
aaron levin
4e4bbff8bc
Export AuthenticateRequest instance for BasicAuth
2015-12-20 22:41:06 +01:00
aaron levin
3fb8f6ff66
Fix spelling mistake
2015-12-20 22:41:05 +01:00
aaron levin
dd003b6887
Fix warnings
2015-12-20 22:41:05 +01:00
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