Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/jira/jira_oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from requests_oauthlib import OAuth2Session
from atlassian.jira import Jira
from flask import Flask, request, redirect, session
import requests
from security import safe_requests

app = Flask(__name__)
app.secret_key = ""
Expand Down Expand Up @@ -75,7 +75,7 @@ def callback():


def get_projects(token_json):
req = requests.get(
req = safe_requests.get(
"https://api.atlassian.com/oauth/token/accessible-resources",
headers={
"Authorization": "Bearer {}".format(token_json["access_token"]),
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ requests-kerberos==0.14.0
# Add this package to search string in json
jmespath
beautifulsoup4
security==1.3.1
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This library holds security tools for protecting Python API calls.

License: MITOpen SourceMore facts