kotlin-server.libraries.ktor._principal.mustache Maven / Gradle / Ivy
{{#authMethods}}
{{#isBasic}}
val principal = call.authentication.principal()!!
{{/isBasic}}
{{#isApiKey}}
val principal = call.authentication.principal()!!
{{/isApiKey}}
{{#isOAuth}}
val principal = call.authentication.principal()!!
{{/isOAuth}}
{{/authMethods}}