Skip to content

Commit 18911f4

Browse files
authored
remove secret examples (#28409)
1 parent 8b10264 commit 18911f4

6 files changed

Lines changed: 19 additions & 19 deletions

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/examples/ApiManagementCreateAuthorizationAADClientCred.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"authorizationType": "OAuth2",
1212
"oauth2grantType": "AuthorizationCode",
1313
"parameters": {
14-
"clientId": "53790925-fdd3-4b80-bc7a-4c3aaf25801d",
15-
"clientSecret": "FcJkQ3iPSaKAQRA7Ft8Q~fZ1X5vKmqzUAfJagcJ8"
14+
"clientId": "clientsecretid",
15+
"clientSecret": "clientsecretvalue"
1616
}
1717
}
1818
}
@@ -27,7 +27,7 @@
2727
"authorizationType": "OAuth2",
2828
"oauth2grantType": "ClientCredentials",
2929
"parameters": {
30-
"clientId": "53790925-fdd3-4b80-bc7a-4c3aaf25801d"
30+
"clientId": "clientsecretid"
3131
},
3232
"status": "Connected"
3333
}
@@ -42,7 +42,7 @@
4242
"authorizationType": "OAuth2",
4343
"oauth2grantType": "ClientCredentials",
4444
"parameters": {
45-
"clientId": "53790925-fdd3-4b80-bc7a-4c3aaf25801d"
45+
"clientId": "clientsecretid"
4646
},
4747
"status": "Connected"
4848
}

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/examples/ApiManagementCreateAuthorizationProviderAADAuthCode.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"redirectUrl": "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1",
1414
"grantTypes": {
1515
"authorizationCode": {
16-
"clientId": "59790825-fdd3-4b10-bc7a-4c3aaf25801d",
17-
"clientSecret": "Q3iPSaKQ~fZFcJk5vKmqzUAfJagcJ8",
16+
"clientId": "clientsecretid",
17+
"clientSecret": "clientsecretvalue",
1818
"scopes": "User.Read.All Group.Read.All",
1919
"resourceUri": "https://graph.microsoft.com"
2020
}

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/examples/ApiManagementCreateAuthorizationProviderGenericOAuth2.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"redirectUrl": "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1",
1414
"grantTypes": {
1515
"authorizationCode": {
16-
"clientId": "ZYIJTBTABHOUQQDLZY",
17-
"clientSecret": "Q3iPSaKQ~fZFcJk5vKmqzUAfJagcJ8",
16+
"clientId": "clientid",
17+
"clientSecret": "clientsecretvalue",
1818
"scopes": null,
1919
"authorizationUrl": "https://www.eventbrite.com/oauth/authorize",
2020
"refreshUrl": "https://www.eventbrite.com/oauth/token",
@@ -38,7 +38,7 @@
3838
"redirectUrl": "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1",
3939
"grantTypes": {
4040
"authorizationCode": {
41-
"clientId": "ZYIJTBTABHOUQQDLZY",
41+
"clientId": "clientid",
4242
"scopes": null,
4343
"authorizationUrl": "https://www.eventbrite.com/oauth/authorize",
4444
"refreshUrl": "https://www.eventbrite.com/oauth/token",
@@ -61,7 +61,7 @@
6161
"redirectUrl": "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1",
6262
"grantTypes": {
6363
"authorizationCode": {
64-
"clientId": "ZYIJTBTABHOUQQDLZY",
64+
"clientId": "clientid",
6565
"scopes": null,
6666
"authorizationUrl": "https://www.eventbrite.com/oauth/authorize",
6767
"refreshUrl": "https://www.eventbrite.com/oauth/token",

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/examples/ApiManagementCreateAuthorizationProviderOOBGoogle.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"redirectUrl": "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1",
1414
"grantTypes": {
1515
"authorizationCode": {
16-
"clientId": "508791967882-5qv6o2i99a75un7329vlegtk78kr766h.apps.googleusercontent.com",
17-
"clientSecret": "qDN0VyVFjU1OsOyT5Kz8ce",
16+
"clientId": "99999999-xxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com",
17+
"clientSecret": "clientsecretvalue",
1818
"scopes": "openid https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email"
1919
}
2020
}
@@ -35,7 +35,7 @@
3535
"redirectUrl": "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1",
3636
"grantTypes": {
3737
"authorizationCode": {
38-
"clientId": "508791967882-5qv6o2i99a75un7329vlegtk78kr766h.apps.googleusercontent.com",
38+
"clientId": "99999999-xxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com",
3939
"scopes": "openid https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email"
4040
}
4141
}
@@ -55,7 +55,7 @@
5555
"redirectUrl": "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1",
5656
"grantTypes": {
5757
"authorizationCode": {
58-
"clientId": "508791967882-5qv6o2i99a75un7329vlegtk78kr766h.apps.googleusercontent.com",
58+
"clientId": "99999999-xxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com",
5959
"scopes": "openid https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email"
6060
}
6161
}

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/examples/ApiManagementListAuthorizationProviders.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"redirectUrl": "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1",
6262
"grantTypes": {
6363
"authorizationCode": {
64-
"clientId": "508791967882-5qv6o2i99a75un7329vlegtk78kr766h.apps.googleusercontent.com",
64+
"clientId": "99999999-xxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com",
6565
"scopes": "openid https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email"
6666
}
6767
}
@@ -79,7 +79,7 @@
7979
"redirectUrl": "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1",
8080
"grantTypes": {
8181
"authorizationCode": {
82-
"clientId": "ZYIJTBTABHOUQQDLZY",
82+
"clientId": "clientid",
8383
"scopes": null,
8484
"authorizationUrl": "https://www.eventbrite.com/oauth/authorize",
8585
"refreshUrl": "https://www.eventbrite.com/oauth/token",

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2023-09-01-preview/examples/ApiManagementListAuthorizationsClientCred.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"authorizationType": "OAuth2",
1919
"oauth2grantType": "ClientCredentials",
2020
"parameters": {
21-
"clientId": "53790925-fdd3-4b80-bc7a-4c3aaf25801d"
21+
"clientId": "clientsecretid"
2222
},
2323
"status": "Connected"
2424
}
@@ -31,12 +31,12 @@
3131
"authorizationType": "OAuth2",
3232
"oauth2grantType": "ClientCredentials",
3333
"parameters": {
34-
"clientId": "53790925-fdd3-4b80-bc7a-4c3aaf25801d"
34+
"clientId": "clientsecretid"
3535
},
3636
"status": "Error",
3737
"error": {
3838
"code": "Unauthorized",
39-
"message": "Failed to acquire access token for service using client credentials flow: IdentityProvider=aadwithclientcred. Correlation Id=6299d09b-03b7-46ed-b355-0453451d7e49, UTC TimeStamp=5/14/2022 4:53:19 PM, Error: Failed to exchange client credentials for token. Response code=Unauthorized, Details:\r\n{\"error\":\"invalid_client\",\"error_description\":\"AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app '53790925-fdd3-4b80-bc7a-4c3aaf25801d'.\\r\\nTrace ID: 4a18d3cd-9ad5-4664-b3eb-daaa2f435f00\\r\\nCorrelation ID: dde60c16-35cb-4572-8226-bfb4233af8d7\\r\\nTimestamp: 2022-05-14 16:53:19Z\",\"error_codes\":[7000215],\"timestamp\":\"2022-05-14 16:53:19Z\",\"trace_id\":\"4a18d3cd-9ad5-4664-b3eb-daaa2f435f00\",\"correlation_id\":\"dde60c16-35cb-4572-8226-bfb4233af8d7\",\"error_uri\":\"https://login.windows.net/error?code=7000215\"}"
39+
"message": "Failed to acquire access token for service using client credentials flow: IdentityProvider=aadwithclientcred. Correlation Id=6299d09b-03b7-46ed-b355-0453451d7e49, UTC TimeStamp=5/14/2022 4:53:19 PM, Error: Failed to exchange client credentials for token. Response code=Unauthorized, Details:\r\n{\"error\":\"invalid_client\",\"error_description\":\"AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app 'clientsecretid'.\\r\\nTrace ID: 4a18d3cd-9ad5-4664-b3eb-daaa2f435f00\\r\\nCorrelation ID: dde60c16-35cb-4572-8226-bfb4233af8d7\\r\\nTimestamp: 2022-05-14 16:53:19Z\",\"error_codes\":[7000215],\"timestamp\":\"2022-05-14 16:53:19Z\",\"trace_id\":\"4a18d3cd-9ad5-4664-b3eb-daaa2f435f00\",\"correlation_id\":\"dde60c16-35cb-4572-8226-bfb4233af8d7\",\"error_uri\":\"https://login.windows.net/error?code=7000215\"}"
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)