How to reproduce: - Create new W# app from the suave template - In the Main.fs file, under the Main function call some Rpc function that will Login the user (you have to pass context to it). eg.

1
2
3
4
5
6
7
8
9
10
let Main =

    let pageSitelet = 
        Application.MultiPage (fun ctx endpoint ->
            match endpoint with
            | EndPoint.Home -> HomePage ctx
            | EndPoint.Play(playEndpoint) ->    
                match playEndpoint with
                | PlayEndPoint.NoAuth -> 
                    let response = Server.AuthUser **ctx** None`
  • make a redirect to other url, call another Rpc function that will try to return the logged user name

Actual: unable to find user that has logged in

This issue does not exist when app runs under IIS.

  • loic.denuziere

    Hi, thanks for the report and sorry for the late reply! I can indeed reproduce the issue. It must be either a bug in WebSharper.Owin that only manifests when not hosted by Katana (because the same code works in a self-hosted app), or in Suave's Owin layer (the former is more likely). I will investigate.

  • github

    I've also just run into this issue. Is there any update?