ai-cfia / membrane-backend

Membrane Backend: A centralized authentication service for Single Sign-On (SSO) enabling seamless token-based email verification across multiple client applications.
MIT License
1 stars 0 forks source link

Provide Option for Always Redirecting to membrane-backend for Authentication #87

Open k-allagbe opened 10 months ago

k-allagbe commented 10 months ago

The current membrane_login_required decorator checks if a user is logged in using flask_login's login_required. This may not suit all scenarios; there are use-cases where we'd want to always redirect to membrane-backend for authentication, regardless of login status.

Proposed Solution

Introduce a new decorator or an option within membrane_login_required for always redirecting to membrane-backend.

rngadam commented 10 months ago

can you detail the "use case" you mention in the description?