Skip to content

AuthenticatorKeyTac rejects uppercase TAC provider type#579

Description

@kunaals

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments; they generate extra noise for issue followers.

Python Version & Okta SDK Version(s)

Python 3.13.2
okta 3.4.5

Affected Class/Method(s)

okta.models.authenticator_key_tac_all_of_provider.AuthenticatorKeyTacAllOfProvider.from_dict

Customer Information

Not applicable; this is a sanitized open-source reproducer.

Code Snippet

from okta.models.authenticator_key_tac_all_of_provider import (
    AuthenticatorKeyTacAllOfProvider,
)

AuthenticatorKeyTacAllOfProvider.from_dict({"type": "TAC"})

Debug Output / Traceback

pydantic_core._pydantic_core.ValidationError: 1 validation error for AuthenticatorKeyTacAllOfProvider
type
  Value error, must be one of enum values ('tac') [type=value_error, input_value='TAC', input_type=str]

Expected Behavior

The model accepts the uppercase TAC provider type returned by the Okta Authenticators API.

Actual Behavior

The generated validator permits only lowercase tac, so deserialization raises a ValidationError.

Steps to reproduce

  1. Install okta==3.4.5.
  2. Run the code snippet above.

References

The generated validator currently declares only lowercase tac:
https://github.com/okta/okta-sdk-python/blob/v3.4.5/okta/models/authenticator_key_tac_all_of_provider.py#L48-L56

Downstream compatibility fix:
cartography-cncf/cartography#3258

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions