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