How to pass kerberos authentication through IIS to Flask Oracle connection?
NickName:AngusE Ask DateTime:2021-01-26T03:02:14

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?

Copyright Notice:Content Author:「AngusE」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/65890843/how-to-pass-kerberos-authentication-through-iis-to-flask-oracle-connection

More about “How to pass kerberos authentication through IIS to Flask Oracle connection?” related questions

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 O...

Show Detail

Is liquibase support kerberos authentication with oracle database connection?

Is liquibase support kerberos authentication with oracle database connection? We are using liquibase node package with version 1.0.1. If kerberos authentication support with liquibase then please p...

Show Detail

Kerberos authentication in IIS 7

We have some web content that is setup in virtual directories using integrated windows authentication. The virtual directories are running under application pools that are using a custom identity (...

Show Detail

IIS log monitoring for Kerberos authentication

We use Kerberos authentication for our websites and it works perfectly most of the times. Means we have enabled only Windows authentication and use Negotiate, NTLM (in the same order) for providers...

Show Detail

Oracle kerberos authentication service canonicalization

I have a nodejs application using kerberos to authenticate to two separate services. One is an Oracle database & the second is an HTTP api. When connecting to each of these services independent...

Show Detail

kerberos auth and connection pooling in jdbc

I've got Java web application running on Tomcat with SSO via SPNEGO/Kerberos and I want to pass kerberos ticket to database, Oracle DB in my case (like impersonation in MS products). I've found an

Show Detail

Kerberos on C# Oracle Managed connection

Is there a way to set up a Kerberos authentication using a Managed Data Access? We have a C# application which connects to our Oracle database for getting/inserting some data. I have to implemen...

Show Detail

jdbc kerberos oracle authentication issue

I have been facing an issue while trying to connect to oracle using kerberos authentication. Similar issue was reported earlier but in my case exception trace is different - jdbc kerberos oracle

Show Detail

ARR unable to pass through Windows Authentication

I have an intranet website which uses windows authentication. Through AJAX it uses a web service in the same domain which also uses windows authentication. I'm using ARR as a reverse proxy only (no

Show Detail

Oracle database authentication using kerberos and AD

We are in the planning phase of configuring our soon-to-be-upgraded databases (19c) to authenticate directly against AD (no oracle proxy). I have read a handful of documents from Oracle on how to d...

Show Detail