Thanks Don for this report. Can you clarify exactly when you're seeing this bug? That is, are you seeing this when trying to authorize your own app (and also requesting a scope like "patient/launch", which involves our patient selector)?
Best,
Josh
It appears that ' https://fhir-dstu2.smarthealthit.org/#/after-auth' does no re-encode the url parameters and that 'https://authorize-dstu2.smarthealthit.org/authorize' is being called with un-encoded parameters.If the state value contains a special url encoding character that character is returned decoded. Specifically, if I send a state value that has a '+' that is properly encoded as '%2B' I get back a space instead of the '+' on a redirect.
--
You received this message because you are subscribed to the Google Groups "SMART on FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smart-on-fhi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
So, when it decodes those parameters, it will cause the state value (or any other value) to be altered if it contains any special url encoding characters like a '+'. I was using a base64 encoding on the state value and '+' is a valid base64 encoding character.
Thanks Justin! Yes, I've confirmed that this particular issue is fixed in the current https://mitreid.org .