FusionAuth / terraform-provider-fusionauth

FusionAuth Terraform Provider
https://registry.terraform.io/providers/FusionAuth/fusionauth/latest
Apache License 2.0
36 stars 55 forks source link

Unable to set the login method for the Google IDP to "UseVendorJavaScript" #284

Closed ColinOrr closed 1 month ago

ColinOrr commented 5 months ago

When I configure the fusionauth_idp_google.login_method to UseVendorJavaScript I receive the following error:

Error: expected login_method to be one of ["UsePopup" "UseRedirect" "LinkByEmail"], got UseVendorJavaScript

  with module.fusion-auth.fusionauth_idp_google.google,
  on fusion-auth/idp.tf line 23, in resource "fusionauth_idp_google" "google":
  23:   login_method = "UseVendorJavaScript"

According to API documentation these are the valid values for the login method:

  • UsePopup - When logging in use a popup window and the Google JavaScript library.
  • UseRedirect - When logging in use the Google OAuth redirect login flow.
  • UseVendorJavaScript - When logging in allow the Google JavaScript library to determine the login method.

https://fusionauth.io/docs/apis/identity-providers/google

so it looks like LinkByEmail should be replaced by UseVendorJavaScript.