Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different OAuth2 Flows #21

Open
abusarah-tech opened this issue May 21, 2022 · 1 comment
Open

Different OAuth2 Flows #21

abusarah-tech opened this issue May 21, 2022 · 1 comment

Comments

@abusarah-tech
Copy link

I have been recently thinking of implementing a similar abstraction to jsforce.OAuth2 where the client is provided with CLIENT_ID, CLIENT_SECRET and from there we can generate an authorization url that can be used as a redirection point.

Also the handling of response_type=code can be done by providing the returned code from a request of an HTTP server to something like client.authorize(code).await? from there the rustforce::Client will be functional in the way it works right now.

I am working on the PR but if there any suggestions, let me know.

@ogomezba
Copy link

ogomezba commented Jun 8, 2023

Hi AbuHafsa!

I was also thinking about implementing something like this. However, I think that processing the code in a server is not possible because the code is included as a Hash Fragment in the return URL. But maybe it can work in some other way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants