We’ve had a number of questions lately around our Oauth and does it support state
?
State is an additional parameter that a developer can use to pass additional information eg: user ID, on a ‘round trip’ through the Oauth and back to their code.
Great news - YES our Oauth server supports this.
To add the state parameter you would change the URL link from
https://secure.myob.com/oauth2/account/authorize?client_id=[YOUR API KEY]&redirect_uri=[URL_ENCODED_REDIRECT_URI]&response_type=code&scope=CompanyFile
to this - by simply adding &state=
https://secure.myob.com/oauth2/account/authorize?client_id=[YOUR API KEY]&redirect_uri=[URL_ENCODED_REDIRECT_URI]&response_type=code&scope=CompanyFile&state=[URL_ENCODED_STATE_VAR]
Comments
0 comments
Article is closed for comments.