briantwene / paperflow

A Cross Platform Desktop app made to discover and download beautiful wallpapers sourced from Reddit.
3 stars 0 forks source link

FEAT: Add Reddit Auth 2 #73

Closed briantwene closed 7 months ago

briantwene commented 7 months ago

Description

This pull request is part 2 of the authentication feature and brings the full implementation of authenticating with the Reddit API with the new approach proposed in #72.

New Features

When a user hit the connect button a window will popup redirecting the user to reddit to authenticate. Once they agree a request will be made to the auth service which acts as a proxy between the application and Reddit and upon receiving the token, it is stored in users credential manager.

When the token expires another request will be made to get another token until the user wishes to disconnect from the application.

Future Plans

This same process could be used for other providers that use an Oauth process of authentication. And some refactoring will need to be done as I might discover that there is a more cleaner way perhaps of doing this