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:
parent
6f5482dae3
commit
439f0486f7
@ -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: ""
|
||||||
|
@ -8,3 +8,11 @@
|
|||||||
clientSettingsJson
|
clientSettingsJson
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
- name: userMetadata
|
||||||
|
query: |
|
||||||
|
query getUserMetadata {
|
||||||
|
user_metadata {
|
||||||
|
parameter
|
||||||
|
value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user