Skip to content

allow remote authorizer 204 response as success or allowed #1237

@xshadowlegendx

Description

@xshadowlegendx

Preflight checklist

Ory Network Project

No response

Describe your problem

I have implemented my own authz service and it return 204 response on allowed and 403 if not, I would like remote_(json) to also accept 204 not just status 200

Describe your ideal solution

I could open a pr for this and include status code check for 204 response and do an early return for that

Workarounds or alternatives

I could add another proxy/function in front of it or change the code to return 200 instead

Version

v0.40.9

Additional Context

I think returning only status of 204 or 403 already convey the meaning when requesting to authz endpoint checking for authorization so if an authz check returns 204 it can interpret as allowed so 204 status should be accepted as success as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions