pycroft
pycroft copied to clipboard
RFC compliant auth header
Issue
we currently implement our own way to integrate the auth part into the authentication header by just putting authentication: apikey KEY. This is not compliant to any auth methods.
Solution
we should implement RFC 7617 in order to keep the key value pair but introduce also an identification for the API. Something like Flask HTTP Auth can be used. https://github.com/agdsn/pycroft/blob/ac4c4635d0e8e51702644060c253ef172e59668e/web/api/v0/init.py#L67-L75