Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Integrating APEX with SLACK

Veerendra PatilJul 3 2020 — edited Jul 7 2020

Hi,

I am using APEX19.1, DB 12c hosted on AWS.

I am trying to integrate SLACK with my application.

I created an app in SLACK to access the web-apis.

I am able to successfully post chats using Incoming web-hooks.

I am also able to GET/POST chats using my OAUTH Access Token generated when I created the app in my Slack workspace.

1.png

Now, I want to access this token by user logging in.

According to Slack docs, steps to authorize are.

1. POST to https://slack.com/oauth/authorize using my client _id and REDIRECT_URI

2. This will generate a code along with the redirect URI

3. Use the code is step 2 and POST to https://slack.com/api/oauth.access with client_id and client_secret as param

4. This will generate the Access_token

I am kind of stuck in step 3. How do I read the code generated in step2?

I created a sample page with a static region with code as

<a href="https://slack.com/oauth/v2/authorize?user_scope=identity.basic&client_id=<my_client_id>&redirect_uri=<Redirect_URL>> click </a>

This successfully takes me to Slack Login and after login I am redirected to my app-page. with the URL containing code part

But not able to read the code and get the token.

How do I solve this?

Is there any work-around for this?

Please suggest.

Thanks,

Veerendra.

Comments
Post Details
Added on Jul 3 2020
4 comments
1,201 views