All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
ActivatePreregistrationEnrollment | Post /webauthn-registration/api/v1/activate | Activate a Preregistered WebAuthn Factor |
EnrollPreregistrationEnrollment | Post /webauthn-registration/api/v1/enroll | Enroll a Preregistered WebAuthn Factor |
GenerateFulfillmentRequest | Post /webauthn-registration/api/v1/initiate-fulfillment-request | Generate a Fulfillment Request |
EnrollmentActivationResponse ActivatePreregistrationEnrollment(ctx).Body(body).Execute()
Activate a Preregistered WebAuthn Factor
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/okta/okta-sdk-golang"
)
func main() {
body := *openapiclient.NewEnrollmentActivationRequest() // EnrollmentActivationRequest | Enrollment Activation Request (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WebAuthnPreregistrationAPI.ActivatePreregistrationEnrollment(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WebAuthnPreregistrationAPI.ActivatePreregistrationEnrollment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ActivatePreregistrationEnrollment`: EnrollmentActivationResponse
fmt.Fprintf(os.Stdout, "Response from `WebAuthnPreregistrationAPI.ActivatePreregistrationEnrollment`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiActivatePreregistrationEnrollmentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | EnrollmentActivationRequest | Enrollment Activation Request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EnrollmentInitializationResponse EnrollPreregistrationEnrollment(ctx).Body(body).Execute()
Enroll a Preregistered WebAuthn Factor
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/okta/okta-sdk-golang"
)
func main() {
body := *openapiclient.NewEnrollmentInitializationRequest() // EnrollmentInitializationRequest | Enrollment Initialization Request (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WebAuthnPreregistrationAPI.EnrollPreregistrationEnrollment(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WebAuthnPreregistrationAPI.EnrollPreregistrationEnrollment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EnrollPreregistrationEnrollment`: EnrollmentInitializationResponse
fmt.Fprintf(os.Stdout, "Response from `WebAuthnPreregistrationAPI.EnrollPreregistrationEnrollment`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiEnrollPreregistrationEnrollmentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | EnrollmentInitializationRequest | Enrollment Initialization Request |
EnrollmentInitializationResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GenerateFulfillmentRequest(ctx).Body(body).Execute()
Generate a Fulfillment Request
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/okta/okta-sdk-golang"
)
func main() {
body := *openapiclient.NewFulfillmentRequest() // FulfillmentRequest | Fulfillment Request (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.WebAuthnPreregistrationAPI.GenerateFulfillmentRequest(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WebAuthnPreregistrationAPI.GenerateFulfillmentRequest``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiGenerateFulfillmentRequestRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | FulfillmentRequest | Fulfillment Request |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]