Azure SSO setup

I worked through the Azure SSO docs this morning for Pritunl VPN (Azure). I’m getting an error 500 after logging in with an azure account that’s in the same org when my browser hits “https://auth.pritunl.com/callback/azure”. I tried setting the redirect link to “https ://vpn.myorg.com/callback/azure”, but the azure login gave an error.

What am I missing?

This is likely an issue with the API keys configured incorrectly. Check the Azure single sign-on documentation and recreate the API keys.

That was it. I definitely used the Secret ID and not the value. I’m now getting a 401 error. Do I need to add users into a group in Azure, or add them in Pritunl prior to being able to log on?

Edit: My permissions were wrong on the API. I did get past the 401. I see the user now. Cheers.