osf.io icon indicating copy to clipboard operation
osf.io copied to clipboard

Service URL Truncated on cas.py

Open ebijun opened this issue 2 years ago • 0 comments

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.

ebijun avatar Jul 26 '23 04:07 ebijun