Skip to content

Instantly share code, notes, and snippets.

View jangaraj's full-sized avatar
💭
Devopsing, Dockerising, Grafanasing, Keycloaking, Clouding, Lambdasing,...

Jan Garaj jangaraj

💭
Devopsing, Dockerising, Grafanasing, Keycloaking, Clouding, Lambdasing,...
View GitHub Profile
@jangaraj
jangaraj / okta_flask_oidc_auth_example_with_pkce.py
Created November 24, 2023 22:38 — forked from cleavenworth/okta_flask_oidc_auth_example_with_pkce.py
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."""
@jangaraj
jangaraj / pyodbc-unixODBC-lambda-layer
Last active June 22, 2021 09:31 — forked from diriver63/pyodbc-unixODBC-lambda-layer
pyodbc and unixODBC for MSSQL as a lambda layer - Python 3.8
# use https://github.com/lambci/docker-lambda to simulate a lambda environment
docker run -it --rm \
--entrypoint bash \
-e ODBCINI=/opt/odbc.ini \
-e ODBCSYSINI=/opt/ \
-v $PWD:/export \
lambci/lambda:build-python3.8
# download and install unixODBC
# http://www.unixodbc.org/download.html
BITS 32
org 0x05000000
db 0x7F, "ELF"
dd 1
dd 0
dd $$
dw 2
dw 3
dd 0x0500001B