okta / okta-sdk-golang

A Golang SDK for interacting with the Okta management API, enabling server-side code to manage Okta users, groups, applications, and more.
https://github.com/okta/okta-sdk-golang
Other
171 stars 142 forks source link

Allow requests to custom endpoints in v4 #465

Open erhan-backupta opened 1 month ago

erhan-backupta commented 1 month ago

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)
github-actions[bot] commented 3 weeks ago

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.

duytiennguyen-okta commented 3 weeks ago

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

github-actions[bot] commented 1 week ago

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.