Registering the Slack OAuth client app

Registering the Slack OAuth client app.

Before you begin

Before you begin, Ensure you have Registered an OAuth client with a provider.

About this task

To register the app in the application registry, from the WAS server bin directory execute:
  • Creating the Registration
  • Updating the Registration
  • Viewing the Registration
  • Deleting an Application

Creating the Registration

To register the app in the application registry, from the WAS server bin directory execute:

./wsadmin.sh -lang jython -username <wasadmin> -password <pwd> -port 8880
execfile('oauthAdmin.py')
OAuthApplicationRegistrationService.addApplication('slack_cnx_files_integration', 'Slack and Files Sharing Integration', 'cnx-slack-ui.a3.conncloudk8s.com')
Note:
  • The appID value should always be slack_cnx_files_integration.
  • The appName value can be any name preferred by the customer and will display on the OAuth grant/deny access page shown to end users.

Updating the Registration

To modify the app in the application registry, from the WAS server bin directory execute:

./wsadmin.sh -lang jython -username <wasadmin> -password <pwd> -port 8880
execfile('oauthAdmin.py')
OAuthApplicationRegistrationService.editApplication('slack_cnx_files_integration', '<New appName>', '<New redirectURI>')

Viewing the Registration

To view the app details in the application registry, from the WAS server bin directory execute:

./wsadmin.sh -lang jython -username <wasadmin> -password <pwd> -port 8880
execfile('oauthAdmin.py')
OAuthApplicationRegistrationService.getApplicationById('slack_cnx_files_integration')

Deleting an Application

To delete an app registration from the application registry, from the WAS server bindirectory execute:

./wsadmin.sh -lang jython -username <wasadmin> -password <pwd> -port 8880 
execfile('oauthAdmin.py') 
OAuthApplicationRegistrationService.deleteApplication('slack_cnx_files_integration')