so im trying to create a simple fullstack app (movies board) to learn react but im having some questions/doubts. Im used to create backend mvc app's with express. So for react i need to create a RESTful API right? if yes how can i protect the api against "public use"?
you need to implement some kind of authorization to secure the API.
Try to use OAuth
Related
I am working on a project I currently have a website(React.js), dashboard and a REST api. I have the dashboard and the REST api on the same express app. Is it better to have them split like making an express app just for the dashboard and another one for the API?
I personally use the same api, but the react bundle can be split. React docs Code-Splitting. Good youtube tutorial here. If you are not already doing that.
I'm trying to implement Google Sign-in into my Angular 8 app which has a REST backend in Node.js+Express.js, I'm not able to find a usefull library, can anyone help me out please?
You can use Firebase auth for this purpose which is very easy to implement and understand. Either this Google oauth2 nodejs library describes the steps to implement the Google Auth in a node.js environment.
I am new to this field and have a lot of confusions, in this case, I have to implement single sign-on in a ReactJs application where it's back-end is node express using OKTA as the IDP?
Please share your thoughts.
Thank you
If you are deploying your ReactJS application using express, you can use passport-saml for managing your saml workflow.
The basic idea should be to serve up your app only if you recieve a valid saml response from the idp.
You can check more here : passport-saml
If u are using your react app without express, you can connect your okta app directly to your react sdk with open idc (okta has an option for this).
I am building an Website and API for a school project.
The website is being made in Node.jswhile the API is built in .netCore version 2.1 with JWT authentication.
The API is working properly and if i use Postman to access the api with the token it works, but how i do it with my website?
I will use the api information to show it using JavaScript.
After some research i didn't found anything.
Any idea how can i do it?
I doubt if using Node.js as a client application is a good approach since it is more commonly used as a backend server. I would suggest you use some js Frontend Framework such as Angular or React.
I am looking for API and Example that can help me to build two-factor authentication of my website for the server as well as the front side.
I want to build something like this, http://ngtfaweb.azurewebsites.net/#/home
You could use Passport Js if you are using node js as backend or you could use services like Auth0 which are one step solution for multiple Oauth.