OTA-Insight / djangosaml2idp

SAML 2.0 Identity Provider in Django
Apache License 2.0
104 stars 97 forks source link

Fix temp folder location on Windows #131

Open fontoura opened 3 years ago

fontoura commented 3 years ago

The temp folder used on models.py is hard-coded to "/tmp".

This works fine in Linux as well as on Mac, but it breaks on Windows.

This pull request changes the hard-coded "/tmp" folder to a portable alternative, which allows djangosaml2idp to be used on Windows hosts.

fontoura commented 1 year ago

@GlenDC and @IgnaceMaes I mede this small PR to fix a problem while running this in a Windows machine. Can you please check it out and maybe merge it?

IgnaceMaes commented 1 year ago

@mhindery Can you take a look? Seems like a quick win!