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