Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OKTA Sso python

Hi I want to access an application that is behind OKTA sso. I am using python requests module for accessing the application. Before Okta I was able to access the application with userid and password from my python script. But after okta the script is failing to access the application.

what modification I need in my Python script using requests module

like image 576
Avishek Avatar asked Jun 04 '26 19:06

Avishek


1 Answers

From what I understand, there is a big chance you want to access an application using Okta issued token.

You need to reach out to the application developers to identify how to properly retrieve a token. There are lots of ways to authenticate using Okta and without more information it's gonna be hard to help you out.

Once you have all those information you should be able to use any python module providing requests authentication classes for the authentication flow that you have to use.

Disclaimer: I wrote requests-auth providing Okta authentication classes that can be used with requests (nominated in the Okta developer community award).

like image 69
Colin B Avatar answered Jun 07 '26 08:06

Colin B



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!