Skip to content

Allow requests to custom endpoints in v4 #465

@erhan-backupta

Description

@erhan-backupta

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions