Open atezet opened 2 years ago
I believe this was for a reason, but it may be time to revisit this. The most likely reasons I remember were:
http://localhost:8000
. This may be a good reason to not use Secure
unconditionally, but a flag or method to opt in to the Secure
attribute would workSecure
, SameSite
, and redirects, making Secure
nonviableThanks for your response. I discussed some options in https://github.com/SergioBenitez/Rocket/issues/2425, I just haven't found any time to look at it any further
In https://github.com/jebrosen/rocket_oauth2/blob/0.5.0-rc.1/src/lib.rs#L693 the
rocket_oauth2_state
cookie is set. By default, Rocket'sadd_private
securely configures cookies withhttponly(true)
, however thesecure
flag is not set. Would it be possible to add a possibility to set thesecure
flag on this cookie? Either automatically when a secure connection is used (not sure if this is possible), or somehow in the configuration? Or just make it the default for production builds?I am also considering to suggest this on
Rocket
as a default instead, as I think it would better to use secure defaults (at the very least for production builds).