pbrucla / reverse_proxy_group2

Group 2's Reverse Proxy Project - Spring 2024
0 stars 1 forks source link

Add auth to all routes, read accounts and password hashes from config #17

Closed LLeon360 closed 3 months ago

LLeon360 commented 3 months ago

Move processing incoming requests into a function that produces a RequestData object to process the original request and the user credential request with the same function.

Read accounts from the config on reverse proxy start.

When the user sends a request, checks for an authorization header and if it's missing, send a request for auth credentials.

Then check the auth against the accounts and allow or deny access appropriately.