As part of the evaluation process for a commercial project, I am looking for any complete example of authentication / authorization using the websharper stack. I would like to use OWIN as it is a well-designed protocol, but I am open to alternatives.
Some requirements:
- use mono
- use the suave server.
We are currently trying to adapt this tutorial for websharper toolbinding: https://www.codeproject.com/tips/849113/four-easy-steps-to-set-up-owin-for-form-authentica
This is what we currently have: https://github.com/Denommus/cookies-problem/blob/master/Main.fs
I would also like to mention that the default method ctx.UserSession.LoginUser has this problem: https://github.com/intellifactory/websharper/issues/647
But the cookie is not being created for some reason, perhaps because we are missing something obvious. Who can help?
EDIT
I think I found out why the cookie is not created: the Suave server does not actually start OwinStartup , so I need to figure out another way to configure IAppBuilder my application. But I still donβt know how to do this, so if someone can help, I will be grateful.
EDIT 2
I think I fixed the OWIN configuration in my application, but I still do not have cookies.
source share