okta / okta-sdk-php

PHP SDK for the Okta API
Apache License 2.0
38 stars 71 forks source link

Usability improvments #74

Open tukataka opened 4 years ago

tukataka commented 4 years ago

I want to use method getUsers for getting all users from my account. My account have more, than 200 users. I need to get link to next page in headers. But right now header doesn't save to some place (as is response). As I understand only way to do it is set custom httpClient. It's very uncomfortable. Can you improve this moment ?

bretterer commented 4 years ago

@tukataka - Yes, that is unfortunately a limitation of this particular SDK. The best I can tell you for now is to use your own custom httpClient. We will be updating the SDK and will make sure to address this at that time.

I do not have a definitive time this will be finished, so please keep an eye on this ticket for updates.

bretterer commented 4 years ago

Internal Ref: OKTA-291534

MrJamesEllis commented 3 years ago

Agree, the only way to inspect headers is to provide a custom HttpClient to the ClientBuilder that can override sendRequest and store the response.