Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
678 views
in Technique[技术] by (71.8m points)

python - How to pass kerberos authentication through IIS to Flask Oracle connection?

On a Windows server, I have a simple Flask app to connect to an Oracle database using kerberos authentication. If I run from command line with Python.exe App.Py, the app successfully connects to Oracle DB using cx_Oracle and runs a simple query and returns the JSON results to the web page.

Next I setup IIS to run Flask apps and I was able to get a simple Hello World Flask app to return a page.

Now I need to run the same Flask app through IIS to connect to the Oracle Database using Kerberos, but the connection fails. Although my ID can establish the connection through Flask command line app or SQLPlus connection, it behaves as if my credentials are not passed through IIS to the Flask app. IIS is setup to use Windows Authentication.

Is there a way to pass through my credentials in IIS so that it establishes the Oracle connection in Flask just like it does when running from the command line?

question from:https://stackoverflow.com/questions/65890843/how-to-pass-kerberos-authentication-through-iis-to-flask-oracle-connection

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...