Hi everyone, I'm creating an internal use only PVA bot for employees at my company. They will chat with the bot via Slack. I want to enable authentication using the Generic OAuth2 option in PVA authentication so that my bot will know who the user is that it's talking to for opening tickets, addressing them by name, etc. The problem is, I don't understand what I'm looking for for many of these fields as Slack doesn't use the same terminology as PVA and I'm not a dev 🙂
I created an app with Slack for my bot, and I have the client ID, secret, scope list delimiter figured out. I believe authorization URL template is "https://slack.com/oauth/authorize" and Token URL template is "https://slack.com/api/oauth.access" but for the rest I am lost.
Authorization URL query string template
Token URL query string template
Token body template
Refresh URL template
Refresh URL query string template
Refresh body template
Token exchange URL (required for SSO)
Scopes
I'm really hoping that someone can point me to a filled out example form for Slack. I can't possibly be the first person attempting this, can I?
Thanks!
Hi!
I know this is a bit of an older post, but this came up when I was searching around for instructions on how to configure the generic OAuth2 provider, and since I figured it out I wanted to come back and leave some help in case someone else follows a similar path.
This article from a blog called Project 365 ended up having the variable names I was looking for in order to configure things like "Token body template".
I've copied the relevant section below. Instead of using the login.microsoftonline.com endpoints you would use whatever endpoints your IDP (Slack in this case) have documented for OAuth2.