ggoodman / nostalgie

Nostalgie is an opinionated, full-stack, runtime-agnostic framework for building web apps and web pages using react.
https://nostalgie.dev
MIT License
151 stars 6 forks source link

Authentication feature should support secure cookies when deployed behind an https endpoint #9

Closed ggoodman closed 3 years ago

ggoodman commented 3 years ago

Currently, the authentication support relies on cookies without the Secure flag enabled. This is mostly to facilitate local testing because recent browser releases have stopped including cookies on certain types of requests initiated by other origins. This broke the auth flow because redirects from an OpenID provider like Auth0 were being made such that the temporary auth state cookie was being omitted.

Some mechanism needs to be implemented to indicate to Nostalgie when it is running in a TLS-enabled environment.

ggoodman commented 3 years ago

Fixed in #10