How to use third login to Grafana dashboard?

I have a web application , but i don’t want to use gragana login page to login. I want to login to grafana in my web application . So there is a problem, the grafana how to get the session cookie when i logined? What api i can use to interactive my web application.

you can use auth proxy feature, put grafana behind nginx / reverse proxy and send the user via http header

How to define the nginx / reverse proxy server ip adress in grafana config file?