Constant Field Values

Contents

io.micronaut.*

  • io.micronaut.security.rules.SecurityRule<T>
    Modifier and Type
    Constant Field
    Value
    public static final String
    "denyAll()"
    public static final String
    "isAnonymous()"
    public static final String
    "isAuthenticated()"
  • io.micronaut.security.rules.SensitiveEndpointRule
    Modifier and Type
    Constant Field
    Value
    public static final String
    "For security purposes, sensitive endpoints are disabled until you supply your own replacement for SensitiveEndpointRule::checkSensitiveAuthenticated, eg:\n\n@Singleton\n@Replaces(SensitiveEndpointRule.class)\nclass SensitiveEndpointRuleReplacement extends SensitiveEndpointRule {\n\n SensitiveEndpointRuleReplacement(EndpointSensitivityProcessor endpointSensitivityProcessor) {\n super(endpointSensitivityProcessor);\n }\n\n @Override\n @NonNull\n protected Publisher<SecurityRuleResult> checkSensitiveAuthenticated(@NonNull HttpRequest<?> request,\n @NonNull Authentication authentication,\n @NonNull ExecutableMethod<?, ?> method) {\n return Mono.just(authentication.getRoles().contains(\"ADMIN\") ? SecurityRuleResult.ALLOWED : SecurityRuleResult.REJECTED);\n }\n}\n"