Skip to content

"auth:api" kills other middlewares + lacks with php cookie authentication. #296

@abooyakdnfakjhnf

Description

@abooyakdnfakjhnf

Subject of the issue

Describe your issue here.

Your environment:

Q A
Bug? yes
New Feature? no
Framework Laravel
Framework version 11.0
Package version 1.x.y
PHP version 5.x.y / 7.x.y

Steps to reproduce

Tell us how to reproduce this issue.

I was trying to make a middleware to authenticate with httpOnly cookie but, the auth:api interrupt every single middleware when the "auth:api" fails at authentication.
I want first pass the Authorization bearer header first and then run "auth:api"
it can be fixed by using append() ,or api(prepend[]) methods.
This Problem might make problems to the other middlewares in the future.

Tell us what should happen
I suggest to add httpOnly cookie authentication, and fix middleware when it fails, it kills other middlewares.

Actual behaviour

when "api:auth fails" it kills other middlewares

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions