Authorization for deployed streamsync apps? #70
-
I want to learn more about how the sessions component could be used for advanced authorisation and access control for a deployed streamsync app. I understand that the Question: What are some proposed methods for the browser (or Vue app) to forward an OAuth token (or some other info) in the headers so that the backend can use them via the Use case: Imagine you are in an environment where identity and access management is a MUST for deployed streamsync apps. How do we achieve it? For example, how could we implement OAuth for the streamsync app in the simplest manner using the Auth0 SDK? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for your interest, this can be achieved in a number of ways but they all revolve around using a reverse proxy with a Streamsync app sitting behind. For example, you can use nginx (needs the Plus version, unfortunately) with the Auth0 module and pass the desired headers:
You can also use cloud services such as Google's Identity Aware Proxy and read its signed headers. You may have success using cookies, but I haven't explored that yet and I believe the reverse proxy approach is better. |
Beta Was this translation helpful? Give feedback.
Thanks for your interest, this can be achieved in a number of ways but they all revolve around using a reverse proxy with a Streamsync app sitting behind.
For example, you can use nginx (needs the Plus version, unfortunately) with the Auth0 module and pass the desired headers:
proxy_set_header username $jwt_claim_sub;
More info here
You can also use cloud services such as Google's Identity Aware Proxy and read its signed headers.
You may have success using cookies, but I haven't explored that yet and I believe the reverse proxy approach is better.