The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
AdalServiceException: AADSTS7000215: Invalid client secret is provided
One or more errors occurred. (A configuration issue is preventing authentication - check the error message from the server for details.You can modify the configuration in the application registration portal. See https://aka.ms/msal-net-invalid-client for details. Original exception: AADSTS7000215: Invalid client secret is provided.
Trace ID: 0d451672-16a9-4c5a-a21f-14caccc30d00
Correlation ID: c288dc19-b89e-4c42-a1a0-e2923a257253
Timestamp: 2021-02-12 09:27:45Z)
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at AppOwnsData.Services.AadService.GetAccessToken() in C:\Users\pksaa\Downloads\PowerBI-Developer-Samples-master (3)\PowerBI-Developer-Samples-master\.NET Core\Embed for your customers\AppOwnsData\Services\AadService.cs:line 65
at AppOwnsData.Services.PbiEmbedService.GetPowerBIClient() in C:\Users\pksaa\Downloads\PowerBI-Developer-Samples-master (3)\PowerBI-Developer-Samples-master\.NET Core\Embed for your customers\AppOwnsData\Services\PbiEmbedService.cs:line 33
at AppOwnsData.Services.PbiEmbedService.GetEmbedParams(Guid workspaceId, Guid reportId, Guid additionalDatasetId) in C:\Users\pksaa\Downloads\PowerBI-Developer-Samples-master (3)\PowerBI-Developer-Samples-master\.NET Core\Embed for your customers\AppOwnsData\Services\PbiEmbedService.cs:line 43
at AppOwnsData.Controllers.EmbedInfoController.GetEmbedInfo() in C:\Users\pksaa\Downloads\PowerBI-Developer-Samples-master (3)\PowerBI-Developer-Samples-master\.NET Core\Embed for your customers\AppOwnsData\Controllers\EmbedInfoController.cs:line 45
Hi @saadashraf ,
On windows consider using HttpUtility:UrlEncode(<client_secret>).
Reference Microsoft documentation:
https://docs.microsoft.com/en-us/dotnet/api/system.web.httputility.urlencode?view=netframework-4.8
Or you can recreate the resource.
There is also a similar post you can refer:
https://github.com/Azure/azure-libraries-for-net/issues/974
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
5 | |
3 | |
2 | |
2 | |
2 |
User | Count |
---|---|
11 | |
7 | |
5 | |
4 | |
4 |