I have a database of users and their security credentials. I'm using passport (node authentication middleware) to authenticate users before serving my main ExtJS app.js. Is there a way to configure my app.js with the user's security credentials as I'm serving app.js? I.e, if Bob is authenticated with security clearance 4, how can I configure my Ext JS app to reflect this security level? I'm quite unfamiliar with web programming..(but learning!)
Related
My question is similar to this one, but my app is build on NodeJS.
I'm working on one POC.
I have a simple nodejs app on Heroku, it has one simple UI in HTML. Currently url of app is accessible by all the users. I want that URL should be accessible by only authenticated users, others can't access that URL.
My ultimate aim is to implement SSO for for authentication.
i am trying to integrate keyCloak in my application, i have created a Realm name "my-app" and added 2 clients
frontend (accessType -public)
backend (accessType - bearer-only)
I want to use the access token (returned from frontend client) to authenticate backend APIs.
i want to achieve same thing explained in this tutorial by making use of Roles, Client Scopes and mappers but not working for me
https://medium.com/devops-dudes/secure-front-end-react-js-and-back-end-node-js-express-rest-api-with-keycloak-daf159f0a94e
i made a mistake in configuration,
on frontend side i made url for auth server "http://127.0.0.1:8080/auth" and on Server side it was "http://localhost:8080/auth", else everything was correct
I am trying to make SSO in my application and I search a lot about SSO and in the end, what I conclude is to create a global session auth them and then create a local session. I know how to create a local session but I don't know how to create a global session.
My one application is on vue and another is on angular. A domain like for vue abc.com/vue and abc.com/angular.
So what I want if the user login in any one of them then in another application user automatic authenticate that's was SSO means.
My problem how can I create a global session for both applications.
I used Express as my authentication server (Single Authentication Server).
Please Sorry if I write something weird.
In a simple word, I want SSO in my application
I would like to know the folder structure of NodeJs as server side VueJs and postgres as back end
As my requirement is we will register user (not from external site ) we will create the user
After authentication authorized user can use web service or content
most important user authentication. which authentication method should use
I have read about passport it is using for authentication between various external site
I have read number of topics i could not found suitable, please guide me
summaries the requirement
folder structure of node
user authentication
NodeJs and VueJs connection
open source
I am making react app and I want to use express server for backend because I want to have user authentication and registration.
So is it reasonable to create couple of "apps" signIn, signUp and general app where user data is displayed. If yes how is it possible to route these different apps for express server? As I have understood is that express serves only index.html of react and browser makes the rest necessary file requests.