dimanche 26 février 2017

Google OAuth2 callBack code endpoint to return personal parameter without changes

I have configured URL to get back OAuth2 code:

http://ift.tt/2lpvejA

More useful format (to check parameters): http://ift.tt/1Nvzg0y?

scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.metadata.readonly&

access_type=offline&

include_granted_scopes=true&

state=state_parameter_passthrough_value&

redirect_uri=http://localhost:3344/oauth2/google/callbackcode&

response_type=code&

client_id=676016849609-r53vpjccpr9kf5uvuul7h6kvek1id2oh.apps.googleusercontent.com&

login_hint=TEST_USER_ID&

prompt=consent

I need identify user in my application if I receive code at my callBackCode endpoint, but I do not have any parameters for that.

I would add userIdInMySystemToGetBackMyRequestDescription=TEST_USER_ID but it does not returns my additional parameter without changes.

Any suggestions how my web could transmit TEST_USER_ID to my server via google oauth?




Aucun commentaire:

Enregistrer un commentaire