# Passkey Terraform Config

**URL:** <https://community.auth0.com/t/passkey-terraform-config/123352>\
**Category:** Get Help\
**Tags:** regular-database-connections, connections\
**Created:** [December 19, 2023, 11:21am UTC](https://community.auth0.com/t/passkey-terraform-config/123352 "2023-12-19T11:21:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![oleksii.dmytrenko](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@oleksii.dmytrenko](https://community.auth0.com/u/oleksii.dmytrenko)\
**Post date:** [December 19, 2023, 11:21am UTC](https://community.auth0.com/t/passkey-terraform-config/123352/1 "2023-12-19T11:21:48Z")

</div>

Hi there. We are testing **Passkey** feature. And we do use terraform configuration for our Auth0 tennant. And I haven’t found how to enable/disable this feature via terraform [here](https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/connection).  
Is it possible to enable **PassKey** for connection via terraform?  
Thanks!

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [December 19, 2023, 3:18pm UTC](https://community.auth0.com/t/passkey-terraform-config/123352/2 "2023-12-19T15:18:32Z")

</div>

Hi @oleksii.dmytrenko , welcome to Auth0!

I looked at our docs on terraform and don’t see any reference about enabling passkey in a connection.

But I can see that this can be done programatically via the management API by setting

```auto
"authentication_methods": {
      "password": {
        "enabled": true
      },
      "passkey": {
        "enabled": true
      }

```

in the [PATCH request](https://auth0.com/docs/api/management/v2/connections/patch-connections-by-id#endpoint).

In terraform, can you maybe try adding to the options object “passkey=true” and let us know?

If that will fail, I will also ask the relevant engineering team on our side.

And a heads up (general note about passkey and auth) - [Passkeys for Auth0 Database Connections](https://auth0.com/docs/authenticate/database-connections/passkeys)

---

<div class="post-metadata">

**Author:** ![oleksii.dmytrenko](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@oleksii.dmytrenko](https://community.auth0.com/u/oleksii.dmytrenko)\
**Post date:** [December 20, 2023, 9:47am UTC](https://community.auth0.com/t/passkey-terraform-config/123352/3 "2023-12-20T09:47:57Z")

</div>

Hi @marcelina.barycka. Thanks for your reply!  
Yes I have seen it in the management API.  
I even tried to use response from API as a reference for TF config. It looked like this:

```auto
authentication_methods {
      passkey {
        enabled = true
      }
      password {
        enabled = true
      }
    }

passkey_options {
  challenge_ui = "both"
  local_enrollment_enabled = true
  progressive_enrollment_enabled = true
}

```

but it didn’t work. Both of these objects were rejected as not supported.

And just now I tried to use your suggestion with passkey = true but it didn’t work either.

```auto
Error: Unsupported argument

  on main.tf line 41, in resource "auth0_connection" "connection-name":
  41: passkey = true

An argument named "passkey" is not expected here.

```

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [December 20, 2023, 10:16am UTC](https://community.auth0.com/t/passkey-terraform-config/123352/5 "2023-12-20T10:16:18Z")

</div>

Hi @oleksii.dmytrenko , thank you for documenting your steps and results.

To confirm whether it’s supported / how to set this up, I brought this internally to our engineering folks. Will update you asap.

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [December 22, 2023, 9:33am UTC](https://community.auth0.com/t/passkey-terraform-config/123352/6 "2023-12-22T09:33:23Z")

</div>

Hi @oleksii.dmytrenko , I got the clarification:

Currently - unfortunately not supported.  
Once the passkey reach the General Availability phase, which is planned for around Jan 31st, the Auth0 Terraform Provider team will put this functionality to their plate and more precise timeline will be specified.

Hope this approx. timeline will help you with planning!

---

<div class="post-metadata">

**Author:** ![oleksii.dmytrenko](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@oleksii.dmytrenko](https://community.auth0.com/u/oleksii.dmytrenko)\
**Post date:** [December 26, 2023, 11:07am UTC](https://community.auth0.com/t/passkey-terraform-config/123352/7 "2023-12-26T11:07:09Z")

</div>

Thanks for the info!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 9, 2024, 11:07am UTC](https://community.auth0.com/t/passkey-terraform-config/123352/8 "2024-01-09T11:07:45Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
