Skip to content

[esh-authz2] AbstractSecurityHandler rework needed #4

@svilenvul

Description

@svilenvul

AbstractSecurityHandler is currently performing authentication for second time.

The HTTP request context already contains Authentication object that can be accessed:

    @Override
    public Principal authenticate(ContainerRequestContext requestContext) {
    	Authentication auth = (Authentication)requestContext.getProperty(Authentication.class.getName());
		return new SmartHomePrincipal(auth);
    }  

This will affect subclasses as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions