I managed to setup both GitHub and Google OAuth login.
However, the login page does not re-authenticate (key in username/password again) the user even though I log off or close entire browser. If i manually clear the browser cache, then i will get re-authenticated.
I have configured --auth-duration=0 in chronograf.service and also restarted.
This is difficult to answer without knowing more information/context.
Have you tried testing the --auth-duration with various other times? Maybe, try 1m or 1h? If it is not working for any time interval, that presents a different problem.
Another option is to store the auth-duration as an environment variable ($AUTH_DURATION) instead and see if that makes any difference.
My environment configuration file is empty. Can you guide me how to use ($AUTH_DURATION)
I also noticed that even though i deleted a user account using another admin account. If i log in via OAuth for the user account, I am able to log in. And the ‘deleted’ user account will reappear in the User configuration.
How can i make the Dashboard as the default page after login ?
You can see a section on Configuring Authentication Duration as an environment variable. If that still doesn’t work, then there could perhaps be a bug, and we would need to file an issue on that.
I will have to do more research on your second and third questions, and will get back to you.