This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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.""" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BITS 32 | |
org 0x05000000 | |
db 0x7F, "ELF" | |
dd 1 | |
dd 0 | |
dd $$ | |
dw 2 | |
dw 3 | |
dd 0x0500001B |