go-aah / aah

A secure, flexible, rapid Go web framework
https://aahframework.org
MIT License
690 stars 33 forks source link

Move stateless/stateful at each auth scheme level #236

Open radutopala opened 5 years ago

radutopala commented 5 years ago

We should be able to set stateless / stateful on each auth scheme independently, because an app may have 2 or more auth schemes, for example jwt/generic with stateless and form with stateful.

Current solution from @jeevatkm: achieve the stateless via interceptor (https://docs.aahframework.org/interceptors.html) - define action or controller level Finally interceptor and then call ctx.Session().Clear() or ctx.Subject().Logout().