This PR adds support for an authorizationUrl that contains query parameters of it own.
OAuth2Client::onHandleAuthorizationURL() currently assumes that the provided URL is a 'simple' URL, and appends the query string by using a ?. This PR changes this behavior, and makes it switch to & if it finds a pre-existing ? in the URL.
Before (example)
https://auth.provider.tld/auth?access_type=offline&prompt=consent?response_type=code&[...]
this is where things go south ☝️
After (example)https://auth.provider.tld/auth?access_type=offline&prompt=consent&response_type=code&[...]
This PR adds support for an
authorizationUrl
that contains query parameters of it own.OAuth2Client::onHandleAuthorizationURL()
currently assumes that the provided URL is a 'simple' URL, and appends the query string by using a?
. This PR changes this behavior, and makes it switch to&
if it finds a pre-existing?
in the URL.Before (example)
After (example)
https://auth.provider.tld/auth?access_type=offline&prompt=consent&response_type=code&[...]