Skip to content

Commit

Permalink
- Update readme's with info about Teams and Meetings OAuth mechanisms
Browse files Browse the repository at this point in the history
  • Loading branch information
dstaudt committed Sep 1, 2020
1 parent 816c04b commit ec18866
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Samples built/tested using [Visual Studio Code](https://code.visualstudio.com/).

Can use webExId/password or webExId/accessToken for authorization

* `oauth2.py` - demonstrates a web application that can perform a Webex Meetings OAuth2 login (using [Authlib](https://github.com/lepture/authlib)), then performs a GetUser request. Can use either [Webex Meetings OAuth](https://developer.cisco.com/docs/webex-meetings/#!integration) or [Webex Teams OAuth](https://developer.webex.com/docs/integrations) providers.
* `oauth2.py` - demonstrates a web application that can perform a Webex Meetings OAuth2 login (using [Authlib](https://github.com/lepture/authlib)), then performs a GetUser request. Can use either [Webex Meetings OAuth](https://developer.cisco.com/docs/webex-meetings/#!integration) or [Webex Teams OAuth](https://developer.webex.com/docs/integrations) mechanisms.

* `Postman collection - Webex Meetings XML API.json` - import this [Postman collection](https://learning.getpostman.com/docs/postman/collections/intro_to_collections/) which contains select scripted API request samples

Expand Down
22 changes: 11 additions & 11 deletions oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@
# Webex Meetings OAuth user using Python + Authlib, then use the
# resulting access token to make a Meetings XML GetUser request

# Note, this sample only works with Webex OAuth enabled sites, and uses
# the Webex Teams integration mechanism: https://developer.webex.com/docs/integrations
# Note, this sample works with Webex OAuth enabled sites, and uses either:

# https://webexapis.com/v1/authorize
# https://webexapis.com/v1/access_token
# GetUser
# * Webex Teams integration mechanism
# * Webex Meetings integration mechanism

# Configuration and setup:

# 1. Edit .env with your Webex site name and the target Webex ID ([email protected])
# 1. Rename .env.example to .env, and edit with your Webex site name/target
# Webex ID ([email protected])

# 2. Register a Webex Teams OAuth integration per the steps here:
# 2. Register a Webex Teams OAuth integration per the steps at:

# * Webex Teams integration mechanism: https://developer.webex.com/docs/integrations
# * Webex Meetings integration mechanism: https://developer.cisco.com/docs/webex-meetings/#!integration

# https://developer.webex.com/docs/integrations

# Set the Redirect URL to: https://127.0.0.1:5000/authorize

# Select the 'spark:all' scope
# For Webex Teams integration, select the 'spark:all' scope

# 3. Place the integration client_id and client_secret values into .env

# 4. Generate the self-signed certificate used to serve the Flask web app with HTTPS.

# This requires that OpenSSL tools are installed (the command below was used on Ubuntu 19.04.)
# This requires that OpenSSL tools are installed (the command below was used on Ubuntu Linux 19.04.)

# From a terminal at the repo root:

Expand Down

0 comments on commit ec18866

Please sign in to comment.