FokiDoki / WireRest

REST API for Wireguard
MIT License
18 stars 5 forks source link

Authentication added #58

Closed FokiDoki closed 1 year ago

FokiDoki commented 1 year ago

Now for every request (except Swagger and OpenApi) you have to pass a token. Token can be passed in 2 ways:

  1. As a query parameter like v1/peers?token=admin
  2. As basic access authentication (In headers) Authorization: Basic admin

Token can be changed by passing the security.token=NEW_TOKEN_HERE envorement parameter. You can also disable it by setting token to an empty. The default token is admin. I strongly recommend change it.