https://kotlinlang.org logo
#ktor
Title
r

Rafa

04/29/2018, 9:57 PM
Is there an intuitive way to use the
Sessions
feature with
Authentication
?
Copy code
authenticate {
            location<Manual> {
                authenticate("kchatAuth1") {
                    get {
                        call.respondText("Success")
                    }
                }
            }
        }
I only get the
ApplicationCall
object once I'm already inside of the
get {...}
and at that point checking to see if there's an existing session is too late
📝 1
o

orangy

04/29/2018, 9:58 PM
I think @cy already added an auth provider for sessions, or may be he was going to…
r

Rafa

04/29/2018, 10:00 PM
Thanks, I'll try and find it
d

Deactivated User

04/30/2018, 9:11 AM
I think it was included in 0.9.2, going to check it and provide a sample
r

Rafa

04/30/2018, 11:42 PM
Thanks Carlos!