Skip to content

Instantly share code, notes, and snippets.

@dllewellyn
Created March 29, 2020 06:30
Show Gist options
  • Save dllewellyn/a4a38e07a8d80e0775c40c04f2764fa3 to your computer and use it in GitHub Desktop.
Save dllewellyn/a4a38e07a8d80e0775c40c04f2764fa3 to your computer and use it in GitHub Desktop.
@Secured(SecurityRule.IS_ANONYMOUS)
@Controller("/authenticated")
class CertificateCheckerController {
@Secured(SecurityRule.IS_AUTHENTICATED)
@Get("/verification")
fun verify(principal: Principal?) =
principal
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment