Hi,
I’m working on a project with both Android and iOS apps. On login, we’re looking to pass additional information within the State request parameter.
Android is unable to change State from its default. iOS is able to overwrite State. Looking at the examples I can see both Go and Spring Boot are also able to set State.
Would it be possible to update the Android to make it possible to change the State request parameter?
In case it’s helpful, the problem looks to be in com.okta.oauth2.AuthorizationCodeFlow.
The public fun start()
(Line 106) sets the default value for State without a way to change it.
The internal fun start()
(Line 121) adds this State as a query parameter without checking extraRequestParameters
to see if a State value has already been added (multiple will cause an error).
For solutions I think either:
- The the public
start()
could provide an overloaded version that exposes State or move State to a default parameter. - The internal
start()
could avoid adding the defaultState
ifState
has already been added usingextraRequestParameters
.
Unsure if I was best to post this here or directly on the Github issues. Hopefully this is ok.
Thanks