haskell-servant / haskell-servant/servant

servant-foreign is missing basic auth instances

Open
#535 0 comments 0 reactions 1 assignee Claimed by @arianvp View on GitHub
enhancement servant-foreign
Dominant language
Haskell
Stars
2k
Forks
427
Avg merge
2d 23h
Merged PRs (30d)
5

Description

One of my servant routes has the following type: `"users" :> "info" :> BasicAuth "Ganja" SessionId :> Get '[JSON] User`. I want to use this from javascript so that I can query username/password protected endpoints via automatically generated javascript functions.

However, this doesn't work:

![](http://puu.sh/pRamG/385e852c04.png)

Could BasicAuth instances be added to servant-foreign?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.