Skip to content

Instantly share code, notes, and snippets.

View frederikheremans's full-sized avatar

Frederik Heremans frederikheremans

View GitHub Profile
@woloski
woloski / slack-auth0.md
Last active August 7, 2019 15:16
Slack + Auth0
  1. Install the Custom Social Connections extension
  2. Click on the Slack button to install the Slack connection
  3. Enter a Slack Client ID and Secret. To get those go to: https://api.slack.com/apps/new. Fill the fields and pay special attention to the Redirect URI. Enter: https://YOURS.auth0.com/login/callback. See screenshots below.
  4. Click on App Credentials on the left and copy the Client ID and Client Secret and paste them on the Auth0 dashboard
  5. Click Save and then try the flow using the Try button. You should get back the full profile from Slack, including email, team and avatars.

Note: you can change the scopes on the Scope field on Auth0 and include any of these: https://api.slack.com/docs/oauth-scopes

You can now use the Slack connection using any Auth0 client library. Example:

@jbarrez
jbarrez / start-repo.sh
Created October 29, 2012 16:09
Boot alfresco war with JRebel
#!/bin/bash
if [[ "$1" == "" ]] ; then
echo
echo "Missing argument 'project-name'"
echo
else
echo
PROJECTNAME=$1
echo "Project : $PROJECTNAME"
echo