Welcome! Log In Create A New Profile

Advanced

Suggestions needed to validate oauth tokens

SA Squared
November 10, 2022 04:32PM
Hello,
 
What I am trying to achieve: Serve downloadable content from one host behind Nginx based on the condition the user has a valid token. Basically I would like to serve the files only when the token is validated.
 
I'm using Nginx not Nginx+.
 
User -> auth request (send user:pass:grant_type etc. to API) to fetch a token from server A.
User -> send the token acquired from interaction with server A to server B for authentication to get authorization to download files from server B.
Server B running Nginx: Validate the token and if it's good allow the user to download the files.
 
Server A is running keycloak. The goal is to have any and all services use keycloak as the central authentication and authorization point.
 
Is there a way to have Nginx pass that token to Keycloak for validation before allowing access to those files.
 
Thanks in advance.
 
Sa
 
 
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

Suggestions needed to validate oauth tokens

SA Squared November 10, 2022 04:32PM

Re: Suggestions needed to validate oauth tokens

Sergey A. Osokin November 10, 2022 04:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 151
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready