Jump to content
Berocoder

Automate login by XOAUTH2

Recommended Posts

I have been implemented send email with FNC CloudPack to OutLook in Azure. Technically everything works fine.
But now there is a change request to automate login.
First time a user send an email the browser is started and user need to login.
I want to remove that step.


I found XOAuth2 protocol that seems to be an extension to OAuth2 that can do this automation by periodically refresh the token ?

  • Is this possible with FNC CloudPack.
  • I found TMS Sphinx. is it possible with this one ?
  • Found this XOAUTH2 Demo from another Component supplier
  • Any other way forward ?

 

I am using Delphi 11.3

Share this post


Link to post

Refreshing the access token (expires within a day) using the refresh token (may not expire for a year or more) is a standard part of any proper OAUTH2 implementation.  But getting that refresh token usually requires a browser login, either embedded Edge or separate browser.

 

The ICS library has several examples for OAUTH2 with refresh tokens.

 

Angus

 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×