Now most other providers seems to be fairly well documented, but not the slack one. I’m not sure if there is any “slack” strategy (or slack2? since there is one outdated and a new one?) that I could use or not, and if so how to configure it.
Any help on this topic would be greatly appreciated.
The strategy used for a Slack social connection should be oauth2. This strategy name is provided whenever you try to create a Slack social connection within the Auth0 Dashboard. You should be able to configure this connection using Terraform using the configuration below:
The “slack” strategy does not work, it is illegal as there does not exist any such available strategy in the terraform library.
The oauth2 solution requires a custom script in order to extract the information you want from the request.
We didn’t want to use slack’s old scopes (identity.*) but rather the recommended openid-method. However, that turned out to an enterprise-connection in the auth0 UI and was difficulty to get running, so instead we rolled with our own connection solution rather than go through auth0.
Regarding your Auth0 tenants, are they under an Enterprise subscription? If not, I understand why you would have difficulties in creating an OIDC Enterprise connection since it is only available for that specific subscription tier.
As you have stated, in the situation that you are in, if the default social login for Slack is outdated and you wish to follow the recommended approach, creating a custom connection would be the only solutiuon.