Open abusarah-tech opened 2 years ago
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.
I have been recently thinking of implementing a similar abstraction to
jsforce.OAuth2
where the client is provided withCLIENT_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 likeclient.authorize(code).await?
from there therustforce::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.