All Questions
Tagged with msal.js asp.net-core
13
questions
1
vote
0
answers
44
views
Calling ASP.NET Core WebAPI from JS embedded in a client WebAPP page
I have an ASP.NET Core WebAPP calling WebAPI. The WebAPP uses Azure B2C for authentication. It then obtains a token which is used for calling the WebAPI. This works great. However, there are scenarios ...
0
votes
1
answer
339
views
How to get access_token from client side for signed in user? using Azure AD B2C hybrid flow
I have a web app on asp.net core 7 that is protected by Azure AD B2C authentication. This part is working and the user is authenticated properly server side, and I can get an access_token server side ...
0
votes
1
answer
125
views
What is the best practice to give different results depending on users app role in an ASP.Net Core Application
I have a VueJS Frontend and an Asp.Net Core Backend.
The user authenticates through the VueJS MSAL library in the Frontend and gives the resulting bearer token to the Backend with each request. I also ...
0
votes
1
answer
164
views
Azure Active Directory in .NET Core 2.2 Web-App | the signature is invalid / signature key was not found
For an existing Angular & .NET Core 2.2 App I have configured an optional Microsoft Azure AD login, but the IIS server aways tells me that the token's signature is invalid.
This can be seen in a ...
0
votes
1
answer
256
views
How do I call a protected web api from a angular application
I followed this doc: asp.net core web api and this doc for the SPA
However, when trying to make a web api call from my angular application (with the [authorize] attribute set) I receive the following ...
1
vote
1
answer
3k
views
Calling an API with MSAL React
I'm attempting to secure an API with Azure AD and call it from a React SPA and I'm running into a 401 Not Authorized error. I'm not too sure what I'm doing wrong.
inside appsettings.json
"AzureAD&...
0
votes
1
answer
233
views
How to acquire an api access token for a SPA app from Azure AD B2C that doesnt require user authentication?
I have an existing Vue/Nuxt based SPA app that uses MSAL.js to authenticate the user and acquire access tokens for my back-end ASP.Net Core WebApi. This is all working fine. However, I have a few ...
0
votes
1
answer
858
views
Why does MSAL.js return CORS header is missing
MSAL.js keeps returning the following errors:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading
the remote resource at
https://webapi.azurewebsites.net/api/order. (Reason:
CORS ...
0
votes
1
answer
2k
views
MSAL.js for API calls from AngularJS with Azure AD Authentication
Currently my application is using ADAL.js to get cached Azure AD token from angularJS application and call API methods of ASP.NET Core hosted.
Planning to migrate ADAL.JS to MSAL.js as support is ...
0
votes
0
answers
274
views
Azure AD B2C - same user with multiple client accounts
I have multiple apps registered with azure AD including UI/API.
User attributes contains "customer id", "role" for permissions to the applications.
Each user has value for "...
0
votes
1
answer
162
views
Authorizing SPA for an API
We have 5 REACT portals and 1 Asp:net Core 3.1 API. We would like to use same API for all portals. They all authorizes through MSAL B2B (react-aad-msal). First I am trying to take one portal to work ...
5
votes
2
answers
15k
views
CORS error with MSAL, Angular and ASP.NET Core
I'm trying to build an ASP.NET Core webapi + Angular website where users can login using Microsoft personal or work or school email. I followed the instructions described here:
https://github.com/...
2
votes
1
answer
326
views
Problem with authenticating Azure AD tokens at Web API
I have 2 web applications.
Site A is both front end (Angular) and a web API written in .NET core.
Site B is a web API written in .NET core.
The web APIs in both sites are the same. The ...