Skip to content

Url rewriting  #5

@rthewhite

Description

@rthewhite

Hi,
First of all, thanks for your work on this policy agent!

I'm currently compiling Nginx from source including your policy agent and all seems to be working fine. But i'm running into issues as soon as i try to rewrite an url to my upstream proxy.

I'm using Nginx as a reverse proxy and hit it with an url like:

https://example.com/auth/v1/someservice

When i proxy pass that directly to an upstream everything works fine and when i'm nog logged in i get redirected to the login page. But when i do a location rewrite:

rewrite ^/auth/v1/(.*) /$1 break;

Basically removing the 'auth/v1' part, the url is not being enforced anymore by OpenAM and i can also reach it when i'm not authenticated? Am i doing something wrong, is this expected behavior or is this a bug?

Thanks!

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