final class atoti.proxy.Proxy
The proxy alllowing to forward requests from Atoti Server to another server. A request made tof"{session.url}/proxy/some/path?foo=bar" will be proxied to f"{session.proxy.url}/some/path?foo=bar":
The new request will have an Authorization HTTP header containing a JWT.
This JWT contains the following claims:
sub: The name of the user making the request to the proxy.authorities: The list of roles of the user.
Example
Using a custom JWT key pair to be able to verify JWT signatures in the local server below:atoti.Session.connect() will raise an error:
atoti.Session.connect() and the access to atoti.Session.user will both succeed:
atoti.Session.connect() always succeeds, even for anonymous calls:
atoti.Session.user for an explanation of the roles above.
Stopping the local server:
See also:
url | The URL towards which requests are forwarded. |
|---|