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
173 stars 143 forks source link

How to fetch eligible authenticators for MFA_ENROLL policy? #387

Open Hashawaji opened 1 year ago

Hashawaji commented 1 year ago

Describe the feature request?

Hi Devs, I am trying to fetch MFA_ENROLL policy using "github.com/okta/okta-sdk-golang/v2/okta". When I list MFA_ENROLL policies, I get no information about eligible authenticators under that policy. Screenshot 2023-06-06 at 3 22 26 PM

Is there any way to get those? I might be missing something here.

New or Affected Resource(s)

okta-sdk-golang

Provide a documentation link

No response

Additional Information?

No response

monde commented 1 year ago

@Hashawaji which API function are you calling? I don't recall the method name, but I do believe we expose the https://developer.okta.com/docs/reference/api/authenticators-admin/ endpoint.

Hashawaji commented 1 year ago

@monde I am using Policy.ListPolicies function to list the policies with type MFA_ENROLL. svc.client.Policy.ListPolicies where svc.client is *okta.Client I do not get any information about eligible authenticators or whether they are disabled, required or optional as I have bordered in image below. 243664288-294e65f4-92fd-4019-8b11-5202f0a6e5a1

I know I can get list of authenticators from Authenticator.ListAuthenticators function call, but I need the status of each authenticator inside the MFA_ENROLL policies.

github-actions[bot] commented 1 year 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.