Open SolomonHD opened 4 years ago
The eg-01-ruby-jwt should provide the example code but it hasn't been updated yet. I've filed DEVDOCS-1615
Re: use request_jwt_user_token? Yes, that's correct.
Meanwhile, here is my suggestion. Notes:
# Request JWT User Token
# @param [String] client_id DocuSign OAuth Client Id(AKA Integrator Key)
# @param [String] user_id DocuSign user Id to be impersonated
# @param [String] private_key_or_filename the RSA private key
# @param [Number] expires_in number of seconds remaining before the JWT assertion is considered as invalid -- Use default
# @param scopes The list of requested scopes. Client applications may be scoped to a limited set of system access. -- use default
# @return [OAuth::OAuthToken]
token = request_jwt_user_token(client_id, user_id, private_key_or_filename)
Hi,
How is authentication supposed to work now? I was on the 1.0.2 gem and this code was working:
But now it seems the configure_jwt_authorization_flow method has been replaced by request_jwt_user_token? But the method seems different and I don't understand what input it's expecting for scope. Can I get an example to work of off please.