Skip to content

Invalid JWT token format #25

@cnieblaog

Description

@cnieblaog

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions