CLEAR example with WebApi and SPA Application (pure js)
See original GitHub issue- [ ] bug report -> please search issues before submitting
- [X] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
It’s possible to have a CLEAR example with
- WebAPI with a controller protected
[Authorize]
by JwtBearerToken - SPA Application (pure js) requesting token and passing to WebAPI ?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Building- Single Page Application Project in Vanilla JavaScript
let's start with what is a Single Page Application (SPA)?. A Single Page Application is a web app that loads only a single...
Read more >ASP.NET - Single-Page Applications: Build Modern ...
... a Single Page Application template. This template installs a skeleton SPA built on Knockout.js. ... NET Web API to create a simple...
Read more >Tutorial: Create a JavaScript single-page application that ...
In this tutorial, you build a JavaScript single-page application (SPA) that uses the Microsoft identity platform to sign in users and get an ......
Read more >Letting a pure HTML/CSS/JS SPA application ask the user ...
I'm writing a fairly large application, with a HTML/CSS/JS frontend, using AngularJS and a ASP.NET MVC Web API as a backend. I would...
Read more >CRUD in HTML, JavaScript, and jQuery Using the Web API
This article focuses on the four standard HTTP verbs that you use to work with the Web API: GET , POST , PUT...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
An example where the backend api validate the token. Now the first example on description use code not found on repository and also use an external library (made by Micosoft) without NuGet package.
For example on startup.cs code there are
AddProtectWebApiWithMicrosoftIdentityPlatformV2
While on README there are code about
.AddAzureAdBearer(options => Configuration.Bind("AzureAd", options));
That must be inserted after
No clues about
AddAzureAdBearer
, no clues aboutAddProtectWebApiWithMicrosoftIdentityPlatformV2
It wold be nice to have an example about:
[Authorize]
attributeok I’ll try the sample, Thanks @TiagoBrenck