Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to protect webclient pages? #63

Open
YannisMarios opened this issue Nov 19, 2017 · 1 comment
Open

How to protect webclient pages? #63

YannisMarios opened this issue Nov 19, 2017 · 1 comment

Comments

@YannisMarios
Copy link

YannisMarios commented Nov 19, 2017

Hi,

How would you protect your web-client index page?

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

@YannisMarios
Copy link
Author

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant