External authentication and authentication data forwarding with nginx

In today’s world, it is normal to see applications running on Kubernetes and exposed with ingress nginx.
Authentication can be added to any application exposed by ingress nginx by using oauth2-proxy. Using the following annotations configures ngi…

In today’s world, it is normal to see applications running on Kubernetes and exposed with ingress nginx.
Authentication can be added to any application exposed by ingress nginx by using oauth2-proxy. Using the following annotations configures nginx’s http auth request module.
nginx.ingress.kubernetes.io/auth-signin: https://oauth2-proxy-ingress/oauth2/start?rd=https://$host$request_uri$is_args$args nginx.ingress.kubernetes.io/auth-url: https://oauth2-proxy-ingress/oauth2/auth When a user is not authenticated, nginx will redirect them to the OAuth2 proxy, prompt for login, generate a cookie and redirect back to the application.


Print Share Comment Cite Upload Translate
APA
() » External authentication and authentication data forwarding with nginx. Retrieved from https://www.truth.cx/2020/08/29/external-authentication-and-authentication-data-forwarding-with-nginx/.
MLA
" » External authentication and authentication data forwarding with nginx." - , https://www.truth.cx/2020/08/29/external-authentication-and-authentication-data-forwarding-with-nginx/
HARVARD
» External authentication and authentication data forwarding with nginx., viewed ,
VANCOUVER
- » External authentication and authentication data forwarding with nginx. [Internet]. [Accessed ]. Available from: https://www.truth.cx/2020/08/29/external-authentication-and-authentication-data-forwarding-with-nginx/
CHICAGO
" » External authentication and authentication data forwarding with nginx." - Accessed . https://www.truth.cx/2020/08/29/external-authentication-and-authentication-data-forwarding-with-nginx/
IEEE
" » External authentication and authentication data forwarding with nginx." [Online]. Available: https://www.truth.cx/2020/08/29/external-authentication-and-authentication-data-forwarding-with-nginx/. [Accessed: ]
Select a language: