-
Notifications
You must be signed in to change notification settings - Fork 196
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
[BUG] publishing an API fails with code":"ValidationError","message":"Cannot use OAuth2AuthenticationSettings in combination with OAuth2 nor openid.
using v6.0.1-rc1
#597
Comments
|
We are getting the same issue. @waelkdouh any fix for this issue ? |
Thanks, was able to replicate the issue. Will roll out a fix. |
I have three env's, and I'm facing this with only one. I'm not sure if it's related to APIOps or an Azure side issue. my all envs are on same version. Thanks! |
It's an issue with the Azure REST API. Retrieving an API returns both Making a |
- Add workspaces (gated behind configuration) - Switch from handlers to providers for DI - Fix for #597
Hi, I can see some fix is merged in v6-rc2 branch by @guythetechie and I tested this scenario again, I'm no longer facing this issue. |
I am still seeing this issue with 'az apim api update' in my yaml pipeline. I am trying to update resource-group, service-name and service-url @guythetechie |
Release version
v6.0.1-rc1
Describe the bug
Publishing an API fails with the error message:
code":"ValidationError","message":"Cannot use OAuth2AuthenticationSettings in combination with OAuth2 nor openid.
In the apiInformation.json of the failing API, there are these lines:
This is produced by the extractor, with no modification.
In the APIM portal,
User authorization
setting is set to OAuth 2.0The API will publish successfully if
oAuth2
andopenidAuthenticationSettings
field is removed, leaving onlyoAuth2AuthenticationSettings
. But since these files are produced by the extractor, these modifications should not be necessary.Expected behavior
The API to be published successfully.
Actual behavior
API fails to publish
Reproduction Steps
User authorization
set to OAuth 2, and provide an OAuth 2.0 serverThe text was updated successfully, but these errors were encountered: