Tuesday, July 23, 2024

https://login.microsoftonline.com/c3e32f53-cb7f-4809-968d-1cc4ccc785fe/oauth2/v2.0/token error in angular 17

 Dear Friend,

If you are working on a single-page application using MSAL Angular, I am 100% sure you have encountered this error in your app.

Let’s cut to the chase; here is the solution to fix it. But before we get to the solution, let’s understand what the error is.



 

The error appears to be the same; the issue arises after login, when it redirects to a URL that is not available or accessible.
The solution is 

{
 
  "msalConfig": {
    "auth": {
      "clientId": "abcs",
      "authority": "https://login.microsoftonline.com/",
      "redirectUri": "https://127.0.0.1:8007" //https://localhost:8007
    }
}

Change this url "redirectUri": "https://127.0.0.1:8007" to https://localhost:8007

Thank you, Hope it will help you

Thursday, July 18, 2024

NU1101 Unable to find package Azure.Identity. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages test.Common C:\Users\NE18310\source\repos\APM0021023-mje\svc-mje-api\source\test.Common\test.csproj

 NU1101 Unable to find package Azure.Identity. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages test.Common C:\Users\NE18310\source\repos\APM0021023-mje\svc-mje-api\source\test.Common\test.csproj

if you get this error then how can you fix this in window 11.
Ans:- Probably, you need to add another valid package source for VS to find the specific packages.

Please click Tools > NuGet Package Manager > Package Manager Settings > Package Sources > check if nuget.org package source has been added. If it hasn’t been added, please click the “Add” button on top right corner > change the Name to nuget.org and the Source to https://api.nuget.org/v3/index.json > click Update > click OK, then rebuild your project.

If it has been added, please try to remove other invalid package sources. Hope it will helpful to you.