mesosphere / traefik-forward-auth

218 stars 47 forks source link

Adds configuration for OAuth library's authentication style. #66

Open Obirah opened 2 years ago

Obirah commented 2 years ago

This pull requests adds the possibility to configure the OAuth library's authentication style. Some OAuth providers don't support the auto detection that is used by default (e.g. AWS Cognito).

I already contributed this to the original traefik-forward-auth. As it was never merged and the project seems to be dead right now, I want to contribute the feature here and move to the mesosphere fork in my environment.

As I'm not a pro in golang yet, I wasn't sure if there is any smart test scenario that could be added to server_test.go (e.g. something that tests the auth style is correct in the request). If you have any ideas/suggestions, please let me know and I will adapt it as well.