Commit graph

6 commits

Author SHA1 Message Date
Winni Neessen a5667bb828
Add bearer token authentication
In this commit, we've added the capability to authenticate via bearer token to Meteologix's HTTP client. A new method "WithBearerToken" has been implemented, allowing a bearer token to be set in 'meteologix.go'. Additionally, in 'httpclient.go', the token is attached to the "Authorization" header for API requests. Tests asserting token setting functionality have been added in 'meteologix_test.go'. These changes open up an alternative authentication option for our API users. The bearer auth is not public yet, so there is no way for us to test this auth
2023-08-02 16:08:38 +02:00
Winni Neessen dec578e751
Added CODE_OF_CONDUCT.md, CONTRIBUTING.md and updated mail address in CopyrightText 2023-05-21 11:46:23 +02:00
Winni Neessen 1fbbaf0a7b
Added mock API support 2023-05-15 16:02:04 +02:00
Winni Neessen 7c9fae0671
More test coverage 2023-05-15 15:27:09 +02:00
Winni Neessen c2d1570430
Add license header for REUSE 2023-05-13 13:23:15 +02:00
Winni Neessen 50ad3747fc
Renamed some struct fields and added more test coverage 2023-05-13 13:18:47 +02:00