datarevenue-berlin / OpenMLOps

MIT License
697 stars 101 forks source link

[DO NOT MERGE] CEN-201: Update Authentication Rules #25

Closed tvinagre closed 3 years ago

tvinagre commented 3 years ago

Updates authentication rules to all services. Once applied, the services will need authentication to be used.

There are two authenticators set up:

In both cases, after getting the token, the gateway validates the user and re-encodes the user information into a JWT token (This is configured by the id_token mutator.

There can be more than one authenticators, but they are tried in a top-down approach. If the first fails, the second one is tried. If both fail, it returns a 401.

TODO: Add Authorization to differentiate regular users from Admins