active-directory-dotnet-graphapi-b2bportal-web icon indicating copy to clipboard operation
active-directory-dotnet-graphapi-b2bportal-web copied to clipboard

Cannot create key secret for AAD app

Open minhhang208 opened this issue 8 years ago • 0 comments

Go to App registrations from AzureActiveDirectory. Created password credentials by updating manifest graph api. screenshot_2

Now trying to create new key using azure portal: screenshot_3

Click save. Got error screenshot_4 F12 to see what wrong. Got 400 with message (Removed sensitve data) {"ClassName":"Microsoft.Portal.Framework.Exceptions.ClientException","Message":"Graph call failed with httpCode=BadRequest, errorCode=Request_BadRequest, errorMessage=Update to existing credential with KeyId 'xyz' is not allowed., reason=Bad Request, correlationId = clientabc, response = {"odata.error":{"code":"Request_BadRequest","message":{"lang":"en","value":"Update to existing credential with KeyId 'abc' is not allowed."},"date":"2017-11-07T18:45:38","requestId":"requestID","values":[{"item":"PropertyName","value":"passwordCredentials"},{"item":"PropertyErrorCode","value":"KeyNotUpdatable"}]}}","Data":null,"InnerException":{"ClassName":"Microsoft.ActiveDirectory.PortalExtension.ADExtension.Server.AADGraph.AADGraphException","Message":"Graph call failed with httpCode=BadRequest, errorCode=Request_BadRequest, errorMessage=Update to existing credential with KeyId 'abc' is not allowed., reason=Bad Request, correlationId = clientabc, response = {"odata.error":{"code":"Request_BadRequest","message":{"lang":"en","value":"Update to existing credential with KeyId 'abc' is not allowed."},"date":"2017-11-07T18:45:38","requestId":"requestID","values":[{"item":"PropertyName","value":"passwordCredentials"},{"item":"PropertyErrorCode","value":"KeyNotUpdatable"}]}}","Data":{"graphError":{"code":"Request_BadRequest","message":{"lang":"en","value":"Update to existing credential with KeyId 'abc' is not allowed."},"values":[{"item":"PropertyName","value":"passwordCredentials"},{"item":"PropertyErrorCode","value":"KeyNotUpdatable"}]}},"InnerException":null,"HelpURL":null,"StackTraceString":" at Microsoft.ActiveDirectory.PortalExtension.ADExtension.Server.AADGraph.AADGraphMessageHandler.<SendAsync>d__2.MoveNext() in E:\bt\861473\repo\src\ADExtension\Extension\Server\AADGraph\AADGraphMessageHandler.cs:line 69\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at

minhhang208 avatar Nov 07 '17 18:11 minhhang208