Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

okta_app_basic_auth optional fields are failing as required #223

Closed
bryantbiggs opened this issue Nov 24, 2020 · 3 comments
Closed

okta_app_basic_auth optional fields are failing as required #223

bryantbiggs opened this issue Nov 24, 2020 · 3 comments

Comments

@bryantbiggs
Copy link
Contributor

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 other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Terraform v0.13.4

Affected Resource(s)

  • okta_app_basic_auth resource

Terraform Configuration Files

resource "okta_app_basic_auth" "service_account" {
  label = "A Service Account"
}

Error Output

Error: The API returned an error: Api validation failed: url. Causes: errorSummary: url: The field cannot be left blank, errorSummary: authURL: The field cannot be left blank

  on apps.tf line 289, in resource "okta_app_basic_auth" "service_account":
 289: resource "okta_app_basic_auth" "service_account" {

Expected Behavior

The resource should be able to be created without url or auth_url as they are marked as optional.

Actual Behavior

Resource fails to create stating that url and authUrl are required

Steps to Reproduce

  1. Copy resource above
  2. terraform apply

Important Factoids

No

References

image

image

@bogdanprodan-okta
Copy link
Contributor

bogdanprodan-okta commented Dec 1, 2020

Hi @bryantbiggs! Thanks for creating this issue! I'll make an investigation and create PR to fix this if necessary.

I made a test call to create a simple app without these values. As it turned out, these are required parameters.
Request:

curl --location --request POST 'https://my-domain.okta.com/api/v1/apps' \
--header 'Authorization: SSWS *****' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "template_basic_auth",
    "label": "Example",
    "signOnMode": "BASIC_AUTH",
    "settings": {
        "app": {}
    }
}'

Response:

{
    "errorCode": "E0000001",
    "errorSummary": "Api validation failed: url",
    "errorLink": "E0000001",
    "errorId": "oaeAHnXl-RxQ0ibBNtgOaWCyg",
    "errorCauses": [
        {
            "errorSummary": "url: The field cannot be left blank"
        },
        {
            "errorSummary": "authURL: The field cannot be left blank"
        }
    ]
}

This will be fixed in #220. Cheers!

@bryantbiggs
Copy link
Contributor Author

thanks @bogdanprodan-okta !

@bryantbiggs
Copy link
Contributor Author

closed with #220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants