Skip to content

Instantly share code, notes, and snippets.

View cleavenworth's full-sized avatar

Cameron Leavenworth cleavenworth

View GitHub Profile
@cleavenworth
cleavenworth / okta_flask_oidc_auth_example_with_pkce.py
Created December 16, 2019 23:52
This is a sample Python 3 app that hosts an OIDC app with Flask to authenticate against Okta and run example calls against the new Okta OAuth-scoped APIs. This example can also be used to host authentication for an OIDC webapp that does not use the OAuth API scopes. This was created with an MVP in mind as an example to demonstrate the ease of in…
#!/usr/bin/env python3
"""This is a sample Python 3 app that hosts an OIDC app with Flask to
authenticate against Okta and run example calls against the new Okta OAuth-scoped APIs.
This example can also be used to host authentication for an OIDC webapp that does not use
the OAuth API scopes.
This was created with an MVP in mind as an example to demonstrate the ease of interacting
with Okta's Authroization Code flow and should not be used in production without
additions to error/state-handling and strong scrutiny."""
@cleavenworth
cleavenworth / Okta-Jamf-LDAPSettings.txt
Last active July 11, 2023 02:06
LDAP Mapping and Configuration Settings for Okta LDAP > Jamf
LDAP Servers
Connection --
Directory Service: Configure Manually
Server and Port: company.ldap.okta<preview>.com : 636
Use SSL: True
Authentication Type: Simple
Distinguished Username: uid=account@company.com,dc=company,dc=okta<preview>,dc=com
Use Wildcards when Searching: True
@cleavenworth
cleavenworth / com.org.loginwindowwifi.mobileconfig
Created May 10, 2017 18:41
Template-ish profile to enable Active Directory account sign-in at the Loginwindow
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadContent</key>
<data>
# Base64-encoded cert if necessary