-
Notifications
You must be signed in to change notification settings - Fork 1
/
oauth.sh
executable file
·55 lines (49 loc) · 3.12 KB
/
oauth.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#! /bin/bash
cd ~
git clone https://github.com/ObjectIsAdvantag/webex-integration-admin
cd ~/webex-integration-admin
npm install
# After creating your webex integration modify params here to generate
# new oath requests.
# This is the return path you give to your integration in Webex
uri="http://localhost:9090/oauth"
# This is the client id of your integration
id="C1785e7c046756972f8e8b3dfc2540b7013d6c6a779628c4889ee1bba20b759ee"
# This is the secret your integration shows you, ONCE!
# So save it or you need to create a new secret.
secret="9ccb26cb5b3c8faccf77b12c3d166dca58c69dd8cc4303f633c89f99d9f54ea4"
#FULL TOKEN! To use if you are unsure what rights you need, don't use
#for prod, handy for whidling down permissions to principle
#of least privilege
scope_full="meeting:schedules_read meeting:schedules_write \
meeting:recordings_read meeting:recordings_write meeting:preferences_read \
meeting:preferences_write meeting:controls_read meeting:controls_write \
meeting:participants_read meeting:participants_write meeting:admin_participants_read \
meeting:admin_schedule_read meeting:admin_schedule_write meeting:admin_recordings_read \
meeting:admin_recordings_write meeting:admin_preferences_write \
meeting:admin_preferences_read spark:calls_read spark:devices_read spark:devices_write \
spark:memberships_read spark:memberships_write spark:messages_read spark:messages_write \
spark:organizations_read spark:people_read spark:people_write spark:places_read \
spark:places_write spark:rooms_read spark:rooms_write spark:team_memberships_read \
spark:team_memberships_write spark:teams_read spark:teams_write spark:xapi_statuses \
spark:xapi_commands spark-admin:devices_read spark-admin:devices_write \
spark-admin:licenses_read spark-admin:organizations_read spark-admin:organizations_write \
spark-admin:people_read spark-admin:people_write spark-admin:places_read spark-admin:places_write \
spark-admin:resource_group_memberships_read spark-admin:resource_group_memberships_write \
spark-admin:resource_groups_read spark-admin:roles_read spark-admin:call_qualities_read \
spark-admin:workspaces_read spark-admin:workspaces_write spark-compliance:events_read \
spark-compliance:memberships_read spark-compliance:memberships_write \
spark-compliance:messages_read spark-compliance:messages_write spark-compliance:rooms_read \
spark-compliance:rooms_write spark-compliance:team_memberships_read \
spark-compliance:team_memberships_write spark-compliance:teams_read \
spark-admin:broadworks_enterprises_read identity:placeonetimepassword_create spark:calls_write \
spark-admin:hybrid_clusters_read spark-admin:hybrid_connectors_read \
spark-admin:broadworks_subscribers_read spark-admin:broadworks_subscribers_write \
analytics:read_all audit:events_read"
#reporting account meeting statistics
scope_report="meeting:admin_participants_read meeting:admin_schedule_read \
spark-admin:people_read"
#scopes for automation create + own meetings report
scope_aut="meeting:schedules_read meeting:schedules_write \
meeting:participants_read meeting:participants_write"
DEBUG=oauth* PORT=9090 REDIRECT_URI=$uri CLIENT_ID=$id CLIENT_SECRET=$secret SCOPES=$scope_aut node static.js