Grafana Loki & Azure AD

Hey Ladies & Gentleman,

I am trying to set up our Grafana Loki server to authenticate with Azure AD and I am having an issue with the redirect uri (https://localhost:port/login/generic_oauth). All of instructions, I have seen says to do it with uri that is in parenthesis above. It gives me this error:

I am now getting the error above not sure what this is I looked in the logs and it is not making sense to me. I see one thing in there about not finding a license.jwt file in /var/lib/grafana.

I am assuming I cannot use localhost in the uri, therefor I need help with this.