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

Validate openiddict token on node.js server #391

Closed
osharper opened this issue Apr 27, 2017 · 3 comments
Closed

Validate openiddict token on node.js server #391

osharper opened this issue Apr 27, 2017 · 3 comments
Labels

Comments

@osharper
Copy link

Hi! Started to explore your library and have, probably, dumb architectural question.

We're using .net core server for authorization and REST API and node.js server for web socket communication (via socket.io).

Currently, PasswordFlow is used and auth part of the code is mostly same as in your sample

We're able to validate token in REST API endpoints on .Net core instance but we also want to use the same token for web sockets.

Is there a way to validate it on node.js server without making a request to .Net core instance?

@kevinchalet
Copy link
Member

Hey,

Is there a way to validate it on node.js server without making a request to .Net core instance?

Consider using JWT as the access token format.

@osharper
Copy link
Author

Thanks, I will. Just supposed that if jwt kinda sucks and at the same time it's a common practice to separate auth and rest instances - there should be a way to do that :)

@kevinchalet
Copy link
Member

@osharper using JWT is fine (and pretty much the only option in your case). What's wrong is using a JS client that relies on the fact that access tokens are necessarily JWT tokens.

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

No branches or pull requests

2 participants