space-cloud
space-cloud copied to clipboard
[Feature] Add support for Authentication via Kratos
The problem faced currently?
Currently we only support authentication via JWT. We should add support for Kratos.
How can we solve it?
- Write a middleware to forward cookie and
x-session-tokento Kratos if SC was started with thekratos.enabledflag. - Store the entire session value dump in the
Claimsfield ofRequestAuthenticationobject.
If you want this feature to be implemented, give it a thumbs up reaction, so that we can determine which features are important to you. 👍