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 verify JWT in feathers issued by another feathers instance ? #484

Closed
JigSawFr opened this Issue Apr 13, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@JigSawFr
Copy link

JigSawFr commented Apr 13, 2017

Hello,
I've a little question,
I've setup an feathers instance to allow LDAP auth and return JWT if success.
And now i've setup another feathers instance (for a different service),
I wanted to protect routes of second instance with JWT of first instance.
But i don't know how to do it without building another auth service (so duplicated...).
Do you have some clue ?
Thank you

@marshallswain

This comment has been minimized.

Copy link
Member

marshallswain commented Apr 13, 2017

The simplest way would be to go ahead and register the auth plugin on the other server. You can disable external access to the /authentication endpoint using a hook. As long as you have the same secret and jwt config on both servers, you'll be able to use the feathers-authentication-jwt plugin and the authenticate('jwt') hook.

@JigSawFr

This comment has been minimized.

Copy link
Author

JigSawFr commented Apr 13, 2017

Okay thank you, what i need to write in hook to disable access ?

@marshallswain

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.