Flask-Middleware / flask-security

Quick and simple security for Flask applications
MIT License
624 stars 155 forks source link

oauth and two factor and spa don't play together #894

Open jwag956 opened 6 months ago

jwag956 commented 6 months ago

oauth is slightly different than our other authentication mechanisms due to the additional external double redirect. When two-factor is enabled - for login/us-signin/webauthn the JSON response will indicate that a second factor is required - but for oauth one can't respond since the actual authentication request is really a callback from the oauth provider - instead - we probably need yet another special redirect view to handle this case.