require two scopes and valid user #742
-
Hi we use the apache httpd as a reverse proxy (on port 5000) in front of a uvicorn fastapi app(on port 5050) . both are running in the same container.
we have two problems:
my questions are:
here is the httpd conf:
container log: httpd_container.log
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
you don't need <RequireAll>
Require claim scope:openid
Require claim scope:secondscope
</RequireAll> should work, see: https://httpd.apache.org/docs/2.4/mod/mod_authz_core.html |
Beta Was this translation helpful? Give feedback.
-
edit: I really think the space between the scopes or that the two scopes that look like they are delivered as one are the problem. thanks for your fast response.
the scopes getting passed in the jwt token and are delimited by a space and the module also receives it from the token:
keycloak.conf
|
Beta Was this translation helpful? Give feedback.
-
ah I think I found the solution here https://githubmemory.com/repo/zmartzone/mod_oauth2/issues/26 if you have more than one scope and its delimited by a space, you have to use double quotes around "scope:" and the scopes
I will test it further and if it keeps working I will mark it as solution |
Beta Was this translation helpful? Give feedback.
ah I think I found the solution here https://githubmemory.com/repo/zmartzone/mod_oauth2/issues/26
thanks @zandbelt of the past
if you have more than one scope and its delimited by a space, you have to use double quotes around "scope:" and the scopes
here is the config, just in case if my link will stop working in the future: