This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
HTTP basic auth utility for generating the authentication header and token
version 1.0.0
license BSD-3-Clause
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.0.0
Committed At 2016-12-23 14:04:00 UTC
truqu/elm-base64 1.0.5 <= v < 2.0.0 1.0.6
elm-lang/http 1.0.0 <= v < 2.0.0 1.0.0
elm-lang/core 5.0.0 <= v < 6.0.0 5.1.1

Modules

README

Elm basic auth utility

A helper library for Elm that provides building basic authentication token and header.

Usage

Add the import to the module where you need to provide a http basic authentication header.

import BasicAuth

To build a Http.Header use

buildAuthorizationHeader : String -> String -> Http.Header
buildAuthorizationHeader "username" "password"

Or to build just the authentication token string

buildAuthorizationToken : String -> String -> String
buildAuthorizationToken "username" "password"