imperyal replied to Ugochukwu Mmaduekwe's topic in Indy
Yeah...
It appears Delphi 2010 does not have the REST components...
Maybe you should try @Remy Lebeau suggestion, use the latest Indy branch.
Good luck!
imperyal replied to Ugochukwu Mmaduekwe's topic in Indy
Hello,
You can try this: delphi-google-oauth2
Not tested on Delphi 2010, but you can give it a try. There's a Demo in the repo, just open it and set your ClientID and ClientSecret.
imperyal replied to Ugochukwu Mmaduekwe's topic in Indy
I ended up creating a TCustomAuthenticator descendent class for this.
It implements a OAuth2 Authenticator:
- Allows authorization via externel browser
- Uses PKCE flow for added security
- Generates new tokens when they expire (using the refresh token)
In the repository there's a Demo app too.
Feel free to use it if you like:
delphi-google-oauth2 repo