Oauth loses state param on login


#1

Hi there,

Looks like the redirect_url passed to authentication loses the state parameter if the user has to log in during the process. If the user is already logged in the state parameter remains as expected.

https://app.hubspot.com/auth/authenticate?client_id=<client_id>&redirect_uri=https%3A%2F%2Fapp.influitive.com%2Fintegration%2Foauth%2Fcallback%3Fapikey%<api_key>%26state%3Dhubspot%253A%253Aapp
For example, this oauth request would redirect to the following if they were not already logged in:
https://app.influitive.com/integration/oauth/callback?apikey=<api_key>


#2

The Oauth flow is currently based off Oauth1 so it does not include a state param.


#3

Hi Seb,
Are there any plans to move to OAuth2 and include the “state” param? If so, can you please let us know an ETA.

Thanks.