okta / okta-sdk-python

Apache License 2.0
229 stars 143 forks source link

Missing headers throws 400 Bad request when call forgot_password_generate_one_time_token method #400

Open neharani-hk opened 2 months ago

neharani-hk commented 2 months ago

Using method forgot_password_generate_one_time_token from user_client.py throws ERROR: {'message': 'Okta HTTP 400 E0000021 Bad request. Accept and/or Content-Type headers likely do not match supported values.\n'}

Found no headers are passed in method here: https://github.com/okta/okta-sdk-python/blob/f8d7bd185eb90771da7973968da7ac4f110d90a1/okta/resource_clients/user_client.py#L4