https://github.com/t73fde/go-auth-s
Simple HTTP Basic Authentication Web Server
https://github.com/t73fde/go-auth-s
authentication basic-authentication http http-server web
Last synced: about 2 months ago
JSON representation
Simple HTTP Basic Authentication Web Server
- Host: GitHub
- URL: https://github.com/t73fde/go-auth-s
- Owner: t73fde
- License: apache-2.0
- Archived: true
- Created: 2019-08-29T16:23:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-01T13:14:50.000Z (about 6 years ago)
- Last Synced: 2024-06-20T17:53:16.529Z (over 1 year ago)
- Topics: authentication, basic-authentication, http, http-server, web
- Language: Go
- Size: 11.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# go-auth-s
Simple HTTP Basic Authentication Web Server.
Provides a simple web server that acts as an authentication server, mostly for
development purposes. This is the Go version. There is also a Python version.
To avoid re-implementation of user authentication based on user/password
scheme, application could delegate this to a web server using HTTP Basic
Authentication. This abstracts away authentications details. Application just
need an appropriate URI to configure authentication.
This simple web server is for development purposes. It provides a web server
that authenticates all access to any ressource (identified by a path):
* If there is no user name and password given, it returns 401 (Authentication
required).
* If the user name or the password is an empty string, it returns 403
(Forbidden).
* If the user name starts with a `x`, it returns 403 (Forbidden).
* If the user name starts with a `q` and the password is different to the user
name, it returns 403 (Forbidden).
* Otherwise it returns 200 (OK)
The server listens on port 9876. This can changed by using the `-p` command
line parameter, eg. `./go-auth-s -p 1234` for listening on port 1234.
My students are encouraged to use this server. A simple motivation is given by
my blog post [HTTP Basic Auth als Infrastruktur zur
Authentifizierung](https://t73f.de/blog/2019/basic_auth_infrastruktur/) (in
german).