okta-sdk-golang icon indicating copy to clipboard operation
okta-sdk-golang copied to clipboard

Allow requests to custom endpoints in v4

Open erhan-backupta opened this issue 1 year ago • 8 comments

Describe the feature request?

In v4, there are some Okta API endpoints that're not supported by the SDK, such as the beta /api/v1/org/factors endpoint. It would be good if we could send API requests even if they're not directly supported via SDK.

If this is a problematic request, even just exporting APIClient.prepareRequest function would help a lot.

New or Affected Resource(s)

All unsupported endpoints (e.g: Factor administration), or any recent endpoints added to API but not yet available in SDK versions

Provide a documentation link

https://developer.okta.com/docs/reference/api/factor-admin/#get-org-factor

Additional Information?

In v2 we were able to send custom requests easily as the example below:

req, _ := client.CloneRequestExecutor().NewRequest("GET", urlStr, nil)
resp, err = client.CloneRequestExecutor().Do(oktaCtx, req, nil)

erhan-backupta avatar Jun 07 '24 13:06 erhan-backupta

This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale label.

github-actions[bot] avatar Jun 25 '24 01:06 github-actions[bot]

OKTA internal reference https://oktainc.atlassian.net/browse/OKTA-742335

duytiennguyen-okta avatar Jun 25 '24 15:06 duytiennguyen-okta

This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale label.

github-actions[bot] avatar Jul 10 '24 01:07 github-actions[bot]

This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale label.

github-actions[bot] avatar Jul 25 '24 01:07 github-actions[bot]

This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale label.

github-actions[bot] avatar Nov 22 '24 02:11 github-actions[bot]

This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale label.

github-actions[bot] avatar Jan 28 '25 02:01 github-actions[bot]

Hello @duytiennguyen-okta ! Any news ?

matthisholleville avatar Jul 16 '25 12:07 matthisholleville

This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale label.

github-actions[bot] avatar Jul 31 '25 02:07 github-actions[bot]