Skip to content

Latest commit

 

History

History

api-basic-auth

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

HTTP API with Basic Auth

This is a HTTP API example authenticating with Basic Auth. It's also making use of leveraging external Javascript - in this case for base64 en/decoding. Last but not least, it's encapsulating the Basic Authentication functionality into a dedicated class.

Since this example makes use of external Javascript, it won't run in the Wing Playground yet.

diagram

Prerequisite

Please make sure to use a current and working setup of the wing cli

Usage

Wing Console

wing it

Wing Tests

wing test --debug  main.w