Thank you for your swift response.
I am using a different approach to retrieve the refresh token. I am following this Microsoft documentation https://learn.microsoft.com/en-us/azure/energy-data-services/how-to-generate-refresh-token#get-a-refresh-token, however when I tried to retrieve the refresh token from a bash terminal suing the authorization code I get the error message ( as shown below) that my authorization code has expired. I know this is related to Microsoft, have you seen this before and how can I obtain a new authorization code? I keep receiving the same authorization code anytime I request for a new one.
Original Message:
Sent: Fri December 08, 2023 06:58 AM
From: John Quirke
Subject: Outbound email with OAuth
Hi Belinux
I have reached out to the development team and they should be in contact subsequently.
In the meantime you may be aware of this Oauth2 app on APP Exchange
This is a utility to generate an OAuth 2.0 authorization code flow refresh token for an IBM SOAR app.
https://exchange.xforce.ibmcloud.com/hub/extension/44aaa4fd44c75e22ec979d994ff9948a
Regards
John
------------------------------
John Quirke
Original Message:
Sent: Thu December 07, 2023 09:03 AM
From: benlinux
Subject: Outbound email with OAuth
Hello John,
I was able to configure Microsoft Azure to collect the required parameters (client id, client secret, token url, auth url), and i used postman to retrieved both access token and refresh token.
However, on the outbound email app, it gives the below error when i test configuration:
fn-outbound-email: 400 Client Error: Bad Request for url: https://login.microsoftonline.com/x.xxxx.x.xxxxxxxxxxxxxxxx/oauth2/v2.0/token selftest: failure selftest output: {'state': 'failure', 'status_code': IntegrationError('400 Client Error: Bad Request for url: https://login.microsoftonline.com/x.x.x..x.x.x.x.x..x.x./oauth2/v2.0/token')} Elapsed time: 0.925000 seconds
Sign in to your account
I am 100% sure that the token url is correct.
Please assist.
------------------------------
benlinux
Original Message:
Sent: Thu December 07, 2023 08:48 AM
From: John Quirke
Subject: Outbound email with OAuth
Hi Benlinux,
Could you outline which step you are having difficulty with and I can see if I can help.
Meanwhile I will reach out to our development team for support.
Regards
John
------------------------------
John Quirke
Original Message:
Sent: Wed December 06, 2023 08:40 AM
From: benlinux
Subject: Outbound email with OAuth
Hello Experts,
I want to integrate IBM SOAR outbound email app with my Microsoft exchange online using OAuth, I referred to the Readme guide regarding this app, but the below aspect seems not to be clear:

I need assist.
Thank you
------------------------------
benlinux
------------------------------