azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az apim api list authenticationSettings property in response is always null

Open ivanignatiev opened this issue 4 years ago • 4 comments

Describe the bug

Confusing response of az apim api list

Command Name az apim api list

Errors: None

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Configure APIM Service with API with Security -> User authorization -> OpenID Connect or OAuth 2.0
  • az login
  • az apim api list --resource-group {} --service-name {}
  • Get response where all APIs have authenticationSettings: null
  • Call az apim api show --resource-group {} --service-name {} --api-id {} for API ID where User authentication is configured
  • Get response with
"authenticationSettings": {
    "oAuth2": null,
    "openid": {
      "bearerTokenSendingMethods": null,
      "openidProviderId": "openid-connect-azuread"
    }
  }

Expected Behavior

  • Option 1. The same value of authenticationSettings property in az apim api list and az apim api show responses
  • Option 2. Absence of authenticationSettings property in az apim api list response

Environment Summary

Windows-10-10.0.14393-SP0
Python 3.6.8
Installer: MSI

azure-cli 2.19.1 *

Additional Context

Account has Contributor access to the APIM Service resource

ivanignatiev avatar Sep 29 '21 09:09 ivanignatiev

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @miaojiang.

Issue Details

Describe the bug

Confusing response of az apim api list

Command Name az apim api list

Errors: None

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Configure APIM Service with API with Security -> User authorization -> OpenID Connect or OAuth 2.0
  • az login
  • az apim api list --resource-group {} --service-name {}
  • Get response where all APIs have authenticationSettings: null
  • Call az apim api show --resource-group {} --service-name {} --api-id {} for API ID where User authentication is configured
  • Get response with
"authenticationSettings": {
    "oAuth2": null,
    "openid": {
      "bearerTokenSendingMethods": null,
      "openidProviderId": "openid-connect-azuread"
    }
  }

Expected Behavior

  • Option 1. The same value of authenticationSettings property in az apim api list and az apim api show responses
  • Option 2. Absence of authenticationSettings property in az apim api list response

Environment Summary

Windows-10-10.0.14393-SP0
Python 3.6.8
Installer: MSI

azure-cli 2.19.1 *

Additional Context

Account has Contributor access to the APIM Service resource

Author: ivanignatiev
Assignees: -
Labels:

Service Attention, API Management

Milestone: -

ghost avatar Sep 29 '21 10:09 ghost

route to service team

yonzhan avatar Sep 29 '21 10:09 yonzhan

@ivanignatiev We are returning authenticationSettings as null for both the command.

RakeshMohanMSFT avatar Aug 03 '22 07:08 RakeshMohanMSFT

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

ghost avatar Aug 10 '22 08:08 ghost