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

CustomParameters values not setting #8486

Closed
Vsetecka7 opened this issue Oct 23, 2024 · 4 comments
Closed

CustomParameters values not setting #8486

Vsetecka7 opened this issue Oct 23, 2024 · 4 comments
Assignees
Labels
API-M-3.2.0 API-M-4.4.0 Docs/Waiting on Reporter Use this label when more input is needed from the reporter of the Git issue

Comments

@Vsetecka7
Copy link

Vsetecka7 commented Oct 23, 2024

Location : https://apim.docs.wso2.com/en/3.2.0/learn/api-controller/advanced-topics/configuring-different-endpoint-security-types/

I have a issue with customParameter attribute (scope: test). However i set any key-value pairs, I still don't see them in the endpoint.

Here is part of my api.yaml downloaded from apim after setting parameter manually in GUI:

  endpointConfig:
    endpoint_type: http
    endpoint_security:
      production:
        tokenUrl: https://apim.cz/apitest/rest/v1/auth/oauth2/token
        clientId: testId
        clientSecret: testSecret
        customParameters:
          scope: test
        additionalProperties: {}
        type: OAUTH
        grantType: CLIENT_CREDENTIALS
        enabled: true

When I try to use the exact same yaml for update (via apictl 4.0), It doesn't set the value, and the downloaded api.yaml looks like this: customParameters: {}

@Vsetecka7 Vsetecka7 changed the title Doc Feedback: CustomParameters values not setting Oct 23, 2024
@msm1992 msm1992 self-assigned this Oct 28, 2024
@msm1992
Copy link
Contributor

msm1992 commented Oct 29, 2024

Hi @Vsetecka7,

  • The recommended APICTL version to be used with APIM 3.2.0 is 3.2.x not 4.0. You can download the latest 3.2.x apictl version from [1].
  • I tested below scenario with APIM 3.2.0(both latest U2 and U2 level 0) and APICTL 3.2.9 and the custom parameters were imported as expected.
    • Created an API, configured endpoint security with OAUTH client_credentials and added a custom parameter. Downloaded the API and checked the customParameters under endpoint_security and this was properly set.
    • Next I tried to create and update aa API by importing the above downloaded API artifact via apictl 3.2.9. In this case also custom property was properly set(verified via GUI).
  • Can you please try using the APICTL 3.2.x version and see if this works ? Also please let me know if the steps I mentioned above are different from what you were trying.

[1]. https://apim.docs.wso2.com/en/3.2.0/learn/api-controller/getting-started-with-wso2-api-controller/#download-and-initialize-the-ctl-tool

Thanks,
Sachini

@msm1992
Copy link
Contributor

msm1992 commented Oct 29, 2024

Hi Team,

I also tested above scenario with APIM 4.4.0 rc2 and APICTL 4.4.0-beta distributions and no issues were identified.

Thanks,
Sachini

@msm1992 msm1992 added Docs/Waiting on Reporter Use this label when more input is needed from the reporter of the Git issue API-M-3.2.0 API-M-4.4.0 labels Oct 29, 2024
@msm1992
Copy link
Contributor

msm1992 commented Oct 31, 2024

Closing the ticket since the mentioned bug cannot be recreated.

@msm1992 msm1992 closed this as completed Oct 31, 2024
@Vsetecka7
Copy link
Author

Thanks, it solved my problem. In version 4.2. seems like it's working properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API-M-3.2.0 API-M-4.4.0 Docs/Waiting on Reporter Use this label when more input is needed from the reporter of the Git issue
Projects
None yet
Development

No branches or pull requests

2 participants