User-Agent in Okta SSO Header API

try:
response = requests.post(
_getokta_url() + ‘/api/v1/users/%s/factors/%s/verify’ % (
user_id, factor_id),
headers={
‘Accept’: ‘application/json’,
‘Content-Type’: ‘application/json’,
‘Authorization’: ‘SSWS %s’ % settings.app.sso_okta_token,
‘X-Forwarded-For’: remote_ip,
},
json=verify_data,

Currently, the Okta.py module for sso does not include the user-agent header. This leaves important context data out of the push notification. Can we add a line here in the headers? Here is the Okta link mentioning the support for that: Factors | Okta Developer

1 Like

This will be fixed in the next release.

Awesome, thanks @zach – when do you expect the next release?

The v1.32 contains major changes and isn’t expected for several more weeks.

All good, thanks @zach – if you need help testing or working on that code, please let me know. Keen to get involved in an open-source project.