Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Add oauth redirect listener #634

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

cg2v
Copy link

@cg2v cg2v commented Jun 20, 2022

Add an HTTP listener for use as the redirect_uri. This will allow gdrive to work after google phases out the "oob" redirect.
I did have working OAuth PKCE (code challenge) support, but it does not work with the currently vendored oauth library, so it's dropped from this branch.

Add an HTTP listener for use as the redirect_uri. This will allow gdrive
to work after google phases out the "oob" redirect.
Also implement oauth PKCE (code challenge)

Signed-off-by: Chaskiel Grundman <cg2v@andrew.cmu.edu>
Signed-off-by: Chaskiel Grundman <cg2v@andrew.cmu.edu>
The redirect_uri is where the google server redirects after completing
authentication.
From our perspective, it's a callback, not a redirect.
Our authorize uri redirects to google, so it would be confusing
to refer to the other url as a redirect

Signed-off-by: Chaskiel Grundman <cg2v@andrew.cmu.edu>
The vendored oauth2 module doesn't support extra token exchange args.
As that is how PKCE is implemented, remove it

Signed-off-by: Chaskiel Grundman <cg2v@andrew.cmu.edu>
Signed-off-by: Chaskiel Grundman <cg2v@andrew.cmu.edu>
fix issue introduced in backport from msfjarvis branch;
refer to ClientId and ClientSecret constants instead of (absent)
parameters

Signed-off-by: Chaskiel Grundman <cg2v@andrew.cmu.edu>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant