Welcome! Log In Create A New Profile

Advanced

Re: Protecting URIs with OAuth2

Jonathan Matthews
February 11, 2014 07:34AM
On 11 Feb 2014 06:33, "kate_r" <nginx-forum@nginx.us> wrote:
>
> Hi
>
> Does anyone know how to protect an URI with OAuth authentication? the
> upstream sever is already capable of issuing new tokens, but I'm hoping
that
> nginx can check the access token for certain URIs.

In my experience, you can easily use nginx to pass the request to an
auth-only app which then tells nginx from where to serve the
success/failure response. I haven't seen a uncomplicated way of getting
nginx itself to do the auth entirely.

I suppose you could write an oauth implementation in lua/perl/etc and embed
it in nginx, but I'd personally argue that would be a mistake in most
architectures.

J
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Protecting URIs with OAuth2

kate_r February 11, 2014 12:32AM

Re: Protecting URIs with OAuth2

Jonathan Matthews February 11, 2014 07:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 89
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready