jimmc / auth

Authentication and authorization for golang programs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

auth package for golang

Example

To build and run the example server:

cd example go build ./example

Point your browser to localhost:8018 and try the /open/hello and api/secret buttons to see how those API calls respond when you are logged in or logged out. See example/pw.txt for usernames and passwords.

You can then look at the code in example.js to see how to use the auth package to provide authentication for your simple web app.

About

Authentication and authorization for golang programs

License:GNU General Public License v2.0


Languages

Language:Go 89.1%Language:JavaScript 7.2%Language:HTML 3.2%Language:CSS 0.5%