-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Hi Geoffrey,
Thanks for sharing your code.
As of May, Google no longer allows sending emails with a username and password, so I'm trying your program to send Gmail emails with OAuth2.
When requesting authentication, after accepting authorization in the browser, I receive the error: "Invalid JWT token format."
Reviewing the code, the error is generated in TEmailOAuthDataModule.IdHTTPServer1CommandGet() in the following statement:
var jwt := TJWT.Create(FOAuth2_Enhanced.IDToken);
Before executing this statement, the value of FOAuth2_Enhanced.IDToken is an empty string ('').
I'm not familiar with the authentication process, but I assume the IDToken should contain data.
Do you know what could be happening?
Regards
Metadata
Metadata
Assignees
Labels
No labels