<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>25 Jul 2025 10:14:53 Z</lastBuildDate><pubDate>26 Sep 2024 14:32:13 Z</pubDate><description>Hi All&#13;
&#13;
Does anyone have working setting for recovinging the auth token from Microsoft so that I can run SMTP to outlook.com accounts.  Since Microsoft have applied Oauth2 to outlook.com, I cannot now use emails.  Fortunatley the app is still in development, but this is a must.&#13;
&#13;
The code I am currently using is:&#13;
&#13;
OAuthOutlookCnt is OAuth2Parameters		&#13;
OAuthOutlookCnt.ClientID = "MyClientID"&#13;
OAuthOutlookCnt.ClientSecret = "MyClientSecret"&#13;
OAuthOutlookCnt.AuthURL="https://login.microsoftonline.com/MytenantID/oauth2/v2.0/authorize"&#13;
OAuthOutlookCnt.TokenURL="https://login.microsoftonline.com/MytenantID/oauth2/v2.0/token"&#13;
OAuthOutlookCnt.Scope="https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/SMTP.Send"&#13;
OAuthOutlookCnt.RedirectionURL = "http://localhost:1998" &#13;
OAuthOutlookCnt.ResponseType = oauth2ResponseTypeCode&#13;
&#13;
MyToken = AuthIdentify(OAuthOutlookCnt)&#13;
IF MyToken.Valid = False THEN&#13;
	STC_Failed.Visible = True&#13;
ELSE&#13;
	STC_Success.Visible = True&#13;
END&#13;
&#13;
(MyClientID, MyClientSecret and MytenantID are substitued for the actual codes)&#13;
&#13;
I have tried everything but MyToken.Valid always returns False.&#13;
I have it working fine with Gmail, but cannot get this to return a token. &#13;
Any suggestions would be greatly appreciated before I finish pulling the last of my hair out!&#13;
&#13;
Thanks&#13;
Simon</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2/read.awp</link><title>Settings for Outlook Oauth2</title><managingEditor>moderateur@pcsoft.fr (Le modérateur)</managingEditor><webMaster>webmaster@pcsoft.fr (Le Webmaster)</webMaster><item><author>LLUIS</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70975/read.awp</comments><pubDate>25 Jul 2025 10:14:53 Z</pubDate><description>Thank you very much for the clarity of this contribution.&#13;
&#13;
One question: Where is the user in the 'SessionSMTP.Name = "someone…</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70975/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70975/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2/read.awp">Settings for Outlook Oauth2</source><title>Re: Settings for Outlook Oauth2</title></item><item><author>alexa graham</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70922/read.awp</comments><pubDate>21 May 2025 13:01:30 Z</pubDate><description>Nice info thanks</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70922/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70922/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2/read.awp">Settings for Outlook Oauth2</source><title>Re: Settings for Outlook Oauth2</title></item><item><author>Simon Phillips</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70814/read.awp</comments><pubDate>6 Feb 2025 20:05:15 Z</pubDate><description>Thanks for your detailed response. What have done is basically now using outlook which is installed on every system. I have the …</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70814/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70814/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2/read.awp">Settings for Outlook Oauth2</source><title>Re: Settings for Outlook Oauth2</title></item><item><author>Jim</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70806/read.awp</comments><pubDate>4 Feb 2025 15:24:23 Z</pubDate><description>OAuthMSOFT			is OAuth2Parameters&#13;
SessionSMTP			is emailSMTPSession&#13;
gAccessToken			is AuthToken&#13;
gRefreshToken		is AuthToken	&#13;
…</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70806/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70806/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2/read.awp">Settings for Outlook Oauth2</source><title>Re: Settings for Outlook Oauth2</title></item><item><author>Jim</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70799/read.awp</comments><pubDate>31 Jan 2025 21:05:35 Z</pubDate><description>I'm leaving now, but will post the code on Monday. &#13;
Our last hurdle is publishing the app on the backend in Azure.  &#13;
This is b…</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70799/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70799/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2/read.awp">Settings for Outlook Oauth2</source><title>Re: Settings for Outlook Oauth2</title></item><item><author>Jason</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70783/read.awp</comments><pubDate>24 Jan 2025 18:19:15 Z</pubDate><description>Jim wrote: &#13;
&gt; Simon,&#13;
&gt; &#13;
&gt; Are you still working on this?&#13;
&gt; I can post an example for you.&#13;
&gt; &#13;
&gt; Jim&#13;
&#13;
I would love the cod…</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70783/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70783/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2/read.awp">Settings for Outlook Oauth2</source><title>Re: Settings for Outlook Oauth2</title></item><item><author>Jim</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70768/read.awp</comments><pubDate>14 Jan 2025 19:43:00 Z</pubDate><description>Simon,&#13;
&#13;
Are you still working on this?&#13;
I can post an example for you.&#13;
&#13;
Jim</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70768/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70768/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2/read.awp">Settings for Outlook Oauth2</source><title>Re: Settings for Outlook Oauth2</title></item><item><author>priv!5vz10M166r44rt+p1z</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70677/read.awp</comments><pubDate>4 Oct 2024 15:24:57 Z</pubDate><description>Hi Justa&#13;
&#13;
Sorry for not getting back to you earlier and thanks for your detailed response. I have now manged to get the Auth c…</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70677/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70677/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2/read.awp">Settings for Outlook Oauth2</source><title>Re: Settings for Outlook Oauth2</title></item><item><author>justamsguy</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70669/read.awp</comments><pubDate>27 Sep 2024 20:00:56 Z</pubDate><description>Hi Simon,&#13;
&#13;
It sounds like you're close but just need a few adjustments to get the OAuth2 flow working for Microsoft's new auth…</description><guid isPermaLink="true">https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70669/read.awp</guid><link>https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2-70669/read.awp</link><source url="https://forum.pcsoft.fr/fr-FR/pcsoft.us.windev/70667-settings-for-outlook-oauth2/read.awp">Settings for Outlook Oauth2</source><title>Re: Settings for Outlook Oauth2</title></item></channel></rss>
