Introduce an endpoint /api/rest/clientSettings that will be used by the client to fetch userdata info before creating a graphql connection.

It is necessary to fetch props bbb_custom_style and bbb_custom_style_url.
This commit is contained in:
Gustavo Trott 2024-09-25 11:53:02 -03:00
parent 6f5482dae3
commit 439f0486f7
4 changed files with 40 additions and 0 deletions

View File

@ -18,3 +18,15 @@ select_permissions:
_eq: X-Hasura-MeetingId _eq: X-Hasura-MeetingId
- userId: - userId:
_eq: X-Hasura-UserId _eq: X-Hasura-UserId
- role: bbb_client_not_in_meeting
permission:
columns:
- parameter
- value
filter:
_and:
- meetingId:
_eq: X-Hasura-MeetingId
- userId:
_eq: X-Hasura-UserId
comment: ""

View File

@ -8,3 +8,11 @@
clientSettingsJson clientSettingsJson
} }
} }
- name: userMetadata
query: |
query getUserMetadata {
user_metadata {
parameter
value
}
}

View File

@ -7,3 +7,12 @@
- GET - GET
name: clientSettings name: clientSettings
url: clientSettings url: clientSettings
- comment: ""
definition:
query:
collection_name: allowed-queries
query_name: userMetadata
methods:
- GET
name: userMetadata
url: userMetadata

View File

@ -26,3 +26,14 @@ location /api/rest/clientSettings {
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8085; #Hasura proxy_pass http://127.0.0.1:8085; #Hasura
} }
location /api/rest/userMetadata {
auth_request /bigbluebutton/connection/checkGraphqlAuthorization;
auth_request_set $meeting_id $sent_http_meeting_id;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8085; #Hasura
}