Skip to content

RequiresAuthentication annotation needs fixing #5

@voodoo84

Description

@voodoo84

RequiresAuthentication annotation interface doesn't work properly because it is not annotated using appropriate RetentionPolicy. It defaults to RetentionPolicy.CLASS, so controller methods annotated using @RequiresAuthentication don't see it in runtime. As a result, no controller method passes methodInfo.isRequiresAuthentication() check in BaseRestServer.HttpServer.serve().

Fix: Annotate RequiresAuthenticator interface with @Retention(RetentionPolicy.RUNTIME), as all other annotation interfaces in the package ru.skornei.restserver.annotations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions