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.

Reviving this old thread. I too have the 401 error but cant seem to see what the issue is? the permissions are setup as per Pritunl documentation and user is created in our sandbox with their UPN aswell. Stil hitting 401 error

I have the same error as above. I have a subscription to Pritunl Enterprise I thought having that license would allow me to use the Azure SSO but I can’t use it. Can someone from Pritunl Support answer this problem?