osf.io
osf.io copied to clipboard
Service URL Truncated on cas.py
There is a cas issue about file or directory path contains i18n chars. https://github.com/apereo/dotnet-cas-client/issues/18
On osf.io: https://github.com/RCOSDP/RDM-osf.io/blob/1a72c8581997904e545fd1c0d35abd30d7bc4c17/framework/auth/cas.py#L78
need encoded URL when passing the service URL. url.args['service'] = service_url might be url.args['service'] = urllib.parse.quote(service_url) to pass/back same service URL to Location header during CAS authencitaton.