Skip to content

Instantly share code, notes, and snippets.

View jasondlee's full-sized avatar

Jason Lee jasondlee

View GitHub Profile
@Alternative
@Priority(Interceptor.Priority.LIBRARY_BEFORE)
@ApplicationScoped
class DisabledAuthController : AuthorizationController() {
@ConfigProperty(name = "myapp.disable.authorization")
var disableAuthorization = false
override fun isAuthorizationEnabled(): Boolean {
return !disableAuthorization
}