I'm trying to create a new SPA project in React or Vue using netcore3.1 or net5.0.
I want to include Identity for Auth.
There are no Vue templates.
The React Template with Redux does not allow for an identity/authentication template.
Is it considered incorrect to build a SPA and utilize the identity razor page scaffolding with a vue/react SPA?
Is there a problem with adding Redux utility to the default React.js + Identity project which uses the services.AddDefaultIdentity() & Identity UI scaffolding?
Related
Currently have a react project, want to add Amplify's backend and authentication - would this be possible? Tutorials explain how to create a new react app / backend src.
I have a pretty traditional ASP.NET MVC application. I would like to start using a Redux store in the application. One obstacle that I am facing is that much of the initialization happens in JavaScript (initial state, reducers, etc.). I can trace a setup ReactJs and Redux application through the startup of Index.js. I have also seen multiple examples of using VS to create a React/Redux application but unfortunately for me this is a "black box" of setup using webpack that I don't want to add to this project. Just Redux. But I am not sure where in this existing application the initialization for Redux should be as that startup seems to be in files like Global.asax and obviously I cannot make JavaScript client calls there. How do I insert Redux into an existing ASP.NET MVC application?
Currently I have a react frontend that authenticates users using msal.js (Azure AD B2C). The backend API is built with .NET Core and currently accessible to anyone.
I would like to secure the API so that only a user authenticated on the frontend can access the API.
Is there any documentation/sample apps on how to achieve this?
Yes, you can secure the application. using React authenticate API which naturally handles the authentication which was imported by other parts of the app.
Here is the example Tutorial of creating a react App with Authentication.
The Authentication React App is based on the NPM.
here is the command that used for creating React APP auth.
create-react-app react-auth0
Also, you can go through the So thread which has related discussions.
In the JS templates that are created there is only SPA format for applications. But what if I don't need Routes and SPA? I need regular MVC with react components like slider, dropdowns etc. You can create a pure MVC project and manually add React components, but then it is not clear how to set up a server to debug react components. The approach to templates is very strange, there are only SPA projects but no other options. How can I remove react routes from the template that is being created?
I've fiddled with Backend Servers using NodeJS in the past and want to build a Web API for a game. I also want that same Web Server to have a Front-end page (For logging in and changing some data the Web API needs for requests, basically).
I'd like the API to be available via localhost/api/v1/.. and currently have a React Page for the Login stuff ect (using the ASP.Net core React template).
How would I go adding in the Web API part? If I understood correct, the ASP.Net Core React template creates both a react front-end and ASP.Net Core back-end already?