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