Kubernetes authentication with Azure using oauth2


We are setting up authentication on K8s with Azure AD using oauth2. However we are able to do so through command line only and not working for dashboard.
Alternatively we deployed oauth2-proxy service to redirect to azure ad which is working however when we try to access dashboard it does not redirect to oauth2-proxy service.
Is there a way if we can create another servcie and redirect it to oauth2-proxy


Were you able to get this working for you? I have been able to get this working on my GKE cluster with our azure AD using oauth2-proxy but I am running into another issue about getting user info from the request header.