Skip to content

Latest commit

 

History

History
207 lines (128 loc) · 6.13 KB

WebAuthnPreregistrationAPI.md

File metadata and controls

207 lines (128 loc) · 6.13 KB

\WebAuthnPreregistrationAPI

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

ActivatePreregistrationEnrollment

EnrollmentActivationResponse ActivatePreregistrationEnrollment(ctx).Body(body).Execute()

Activate a Preregistered WebAuthn Factor

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiActivatePreregistrationEnrollmentRequest struct via the builder pattern

Name Type Description Notes
body EnrollmentActivationRequest Enrollment Activation Request

Return type

EnrollmentActivationResponse

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EnrollPreregistrationEnrollment

EnrollmentInitializationResponse EnrollPreregistrationEnrollment(ctx).Body(body).Execute()

Enroll a Preregistered WebAuthn Factor

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiEnrollPreregistrationEnrollmentRequest struct via the builder pattern

Name Type Description Notes
body EnrollmentInitializationRequest Enrollment Initialization Request

Return type

EnrollmentInitializationResponse

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GenerateFulfillmentRequest

GenerateFulfillmentRequest(ctx).Body(body).Execute()

Generate a Fulfillment Request

Example

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)
    }
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiGenerateFulfillmentRequestRequest struct via the builder pattern

Name Type Description Notes
body FulfillmentRequest Fulfillment Request

Return type

(empty response body)

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]