Skip to content

question: disable auth redirect does not return 401. #433

@alvin664

Description

@alvin664

I am using the following authorization policy, attempting to get a 401 returned to browser so that client-side js can handle the error. But browser still sees the default 302 returned.

Any idea how to achieve that?

            authorization policy my_policy_401 {
                    set auth url https://xxxxx
                    crypto key verify yyyyy
                    allow roles authp/admin authp/user
                    acl default allow
                    set token sources cookie
                    inject headers with claims
                    disable auth redirect
            }

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions