servant-auth-token-leveldb alternatives and similar packages
Based on the "servant" category.
Alternatively, view servant-auth-token-acid alternatives based on common mentions on social networks and blogs.
-
servant
Main repository for the servant libraries — DSL for describing, serving, querying, mocking, documenting web applications and more! -
servant-elm
Automatically derive Elm functions to query servant webservices -
servant-purescript
Translate servant API to purescript code, with the help of purescript-bridge. -
servant-generic
Specify Servant routes with records -
servant-swagger-ui
Provide embedded swagger UI for servant and swagger -
servant-response
Moved to http://github.com/haskell-servant -
servant-auth-cookie
Authentication via encrypted cookies -
servant-js
Automatically derive javascript functions to query servant webservices. -
servant-router
Servant router for non-server applications. -
servant-aeson-specs
Generically obtain tests for JSON serialization -
servant-subscriber
When REST is not enough ... -
servant-exceptions
Extensible exceptions for servant -
servant-pandoc
Render a servant API to Pandoc's native representation -
servant-pagination
Type-safe pagination for Servant APIs -
servant-cassava
Servant CSV content-type for cassava -
servant-github-webhook
Servant combinators for writing secure GitHub webhooks -
servant-cli
Generate a command line client from a servant API -
servant-mock
Derive a mock server for free from your servant API types -
servant-matrix-param
Matrix parameter combinator for servant -
servant-auth-token-acid
Servant based API and server for token based authorisation -
servant-github
servant types to access the GitHub API v3 -
servant-py
Servant client generators for the Python language -
servant-jsonrpc
Tools to build JSON-RPC clients and servers the Servant way -
servant-reason
Automatically derive bindings for Servant APIs in Reason -
servant-zeppelin-client
Server Side Loading JSON -
servant-xml
Servant support for the XML Content-Type. -
servant-match
Standalone implementation of servant’s dispatching mechanism -
servant-kotlin
Automatically derive Kotlin functions to query servant webservices -
servant-http2-client
Generate http2-client from Servant APIs -
servant-ruby
Create a Ruby client from a Servant API using Net::HTTP. -
servant-options
Provide responses to OPTIONS requests for Servant applications. -
servant-csharp
Generate servant client library for C# -
servant-generate
Generate default implementations for servers in a flexible way (a.k.a servant-mock on steroids) -
servant-iCalendar
servant support for iCalendar -
servant-haxl-client
automatical derivation of querying functions for servant webservices -
servant-wasm
Servant support for delivering WebAssembly -
servant-proto-lens
Servant Content-Type for proto-lens protobuf modules. -
servant-jsonrpc-client
Generate JSON-RPC servant clients -
servant-multipart
multipart/form-data (e.g file upload) support for servant
Tired of breaking your main and manually rebasing outdated pull requests?
Do you think we are missing an alternative of servant-auth-token-leveldb or a related project?
README
servant-auth-token
The repo contains server implementation of servant-auth-token-api.
How to add to your server
At the moment you have two options for backend storage:
persistent backend - persistent backend, simple to integrate with your app.
acid-state backend - acid-state backend is light solution for in memory storage, but it is more difficult to integrate it with your app.
Possible candidates for other storage backends: VCache, leveldb, JSON files. To see how to implement them, see HasStorage type class.
Now you can use 'guardAuthToken' to check authorization headers in endpoints of your server:
-- | Read a single customer from DB
customerGet :: CustomerId -- ^ Customer unique id
-> MToken '["customer-read"] -- ^ Required permissions for auth token
-> ServerM Customer -- ^ Customer data
customerGet i token = do
guardAuthToken token
runDB404 "customer" $ getCustomer i