Oauth2orizeRecipes icon indicating copy to clipboard operation
Oauth2orizeRecipes copied to clipboard

How to protect webclient pages?

Open YannisMarios opened this issue 7 years ago • 1 comments

Hi,

How would you protect your web-client index page?

One has to login first before he can access it. How?

YannisMarios avatar Nov 19 '17 20:11 YannisMarios

I also do not understand why you try to login through the resource server

https.createServer(options, (req, res) => {
  if (req.url.startsWith('/api/tokeninfo') || req.url.startsWith('/oauth/token')) {
    authServer.web(req, res);
  } else if (req.url.startsWith('/login') || req.url.startsWith('/info') || req.url.startsWith('/api/protectedEndPoint')) {
    resourceServer.web(req, res);
  } else {
    localServer.web(req, res);
  }
}).listen(5090);

YannisMarios avatar Nov 23 '17 21:11 YannisMarios