From f69cfbeea57b64d2f14e55696266d449f3a21c53 Mon Sep 17 00:00:00 2001 From: Anne Gentle Date: Thu, 30 Nov 2023 21:33:26 -0600 Subject: [PATCH 1/3] Funcion > Function Small typo --- oauth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oauth.py b/oauth.py index 0ddafae..d9f47bb 100644 --- a/oauth.py +++ b/oauth.py @@ -133,7 +133,7 @@ def oauth(): return render_template("index.html") """ -Funcion Name : spaces +Function Name : spaces Description : Now that we have our authentication code the spaces button on the granted page can leverage this function to get list of spaces that the user behind the token is listed in. The @@ -147,8 +147,8 @@ def spaces(): response = api_call() print("status code : ", response.status_code) - #Do a check on the response. If the access_token is invalid then use refresh - # tokent to ontain a new set of access token and refresh token. + # Do a check on the response. If the access_token is invalid then use refresh + # token to obtain a new set of access token and refresh token. if (response.status_code == 401) : get_tokens_refresh() response = api_call() From c6d5ffee5ecd9ef53c466b5cd7e61d6500728498 Mon Sep 17 00:00:00 2001 From: Anne Gentle Date: Thu, 30 Nov 2023 21:40:46 -0600 Subject: [PATCH 2/3] More clarity --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 806dd4d..2898817 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,18 @@ # OAuth Integration Demo -Make sure to have Python 3 installed. +Prerequisite: Be sure to have Python 3 installed. -To run the server application, open a command terminal, and navigate to the folder where you saved this Python script. +To run the server application, open a command terminal and navigate to the folder where you saved this Python script. -Replace the required variables (Client ID, Secrect ID etc...) in the oauth.py file on lines 23 and 24, Replace the URL in the tag in - index.html, then run: +Replace the required variables `clientID`, `secretID`, and `redirectURI` (if needed) in the `oauth.py` file on lines 23 and 24. Replace the URL in the tag in index.html, then run: *python3 oauth.py* You should see this in the terminal: - +``` Listening on http://0.0.0.0:10060... +``` -copy and paste above URL into browser and follow prompts +Copy and paste the returned URL into a browser and follow the prompts. -**Note**: Your Redirect_URI in the Integration's settings on Developer Webex Teams site should be: http://0.0.0.0:10060/oauth or if you're using any other hosting platform it would be https://YOUR_SERVER/oauth +**Note**: Your Redirect_URI in the Integration's settings on the Developer Webex Teams site should be: `http://0.0.0.0:10060/oauth`, or if you're using any other hosting platform, it would be `https://YOUR_SERVER/oauth`. From 9d95dd32193725e481ce33866d794bc038b4ab92 Mon Sep 17 00:00:00 2001 From: Anne Gentle Date: Thu, 30 Nov 2023 21:53:10 -0600 Subject: [PATCH 3/3] thier > their --- oauth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oauth.py b/oauth.py index d9f47bb..ce3fa5b 100644 --- a/oauth.py +++ b/oauth.py @@ -106,8 +106,8 @@ def main_page(): """ Function Name : oauth -Description : After the grant button is click from index.html - and the user logs into thier Webex account, the +Description : After the grant button click from index.html + and the user logs into their Webex account, the are redirected here as this is the html file that this function renders upon successful authentication is granted.html. else, the user is sent back to index.html