Skip to content

Commit 1dcda1c

Browse files
committed
add code for upcoming okta post
1 parent ed397a1 commit 1dcda1c

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,6 @@ monitor-flask-apps/.env
9494
monitor-python-bottle-apps/.env
9595
monitor-django-apps/djmonitor/db.sqlite3
9696
*/*/db.sqlite3
97+
98+
# Flask auth Okta post
99+
flask-auth-okta/openidconnect_secrets.json

flask-auth-okta/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
app = Flask(__name__)
66
app.config["DEBUG"] = True
77
# secret credentials for Okta connection
8-
app.config["OIDC_CLIENT_SECRETS"] = "client_secrets.json"
8+
app.config["OIDC_CLIENT_SECRETS"] = "openidconnect_secrets.json"
99
app.config["OIDC_COOKIE_SECURE"] = False
1010
app.config["OIDC_CALLBACK_ROUTE"] = "/oidc/callback"
1111
app.config["OIDC_SCOPES"] = ["openid", "email", "profile"]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"web": {
3+
"client_id": "{{ OKTA_CLIENT_ID }}",
4+
"client_secret": "{{ OKTA_CLIENT_SECRET }}",
5+
"auth_uri": "{{ OKTA_ORG_URL }}/oauth2/default/v1/authorize",
6+
"token_uri": "{{ OKTA_ORG_URL }}/oauth2/default/v1/token",
7+
"issuer": "{{ OKTA_ORG_URL }}/oauth2/default",
8+
"userinfo_uri": "{{ OKTA_ORG_URL }}/oauth2/default/userinfo",
9+
"redirect_uris": [
10+
"http://localhost:5000/oidc/callback"
11+
]
12+
}
13+
}

0 commit comments

Comments
 (0)