-
Notifications
You must be signed in to change notification settings - Fork 27
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
Distributed application with authentification (Question) #24
Comments
Thanks, we would need more information to help you. First why do you need 2 different auth systems ? Are these systems sharing the same user DB or not (ie the same user has different account, one for each app or a single account) ? Does each app work as a standalone solution from the user point of view (ie different domains, etc.) and collaborate for some parts with the other app ? There are different ways to manage this depending on your context, here are some ideas:
This is a draft article that will be submitted to Feathers blog, it might help: https://medium.com/@luc.claustres/a-use-case-of-microservices-with-feathersjs-building-a-geospatial-platform-56373604db71. Some interesting discussions as well: feathersjs/feathers#332 (comment), feathersjs/feathers#939 (comment). |
Every system have own DB. For exemple if I have an mail app and phone App. Mail auth => email+ password If I open mail.html I need to connect to the mail auth but not on phone app. But from server mail app. I need to be able to get the phone number for exemple. Sory if my english was not correct. I french dev ;) |
I'm just stupid I found how to use correctly authentification. I have a last question, What is happen when 2 services have the same name? |
Could you please share what the problem was and how you solved it so that if others seek for a similar issue they will find some information. You should not have services with the same name except if you use replication (multiple instances of the same app for scaling purpose). In this case cotejs will load balance requests between services: https://github.com/dashersw/cote#requester. |
By the way we've just added some options to select which services to "import" and "export": https://github.com/kalisio/feathers-distributed/blob/master/README.md#configuration-options. For instance it probably does not make sense to distribute your user services between apps. |
It's not user I want to distribute. But in all app I want to create a "main" serviceto create custom method. So I need export this. |
An for my porbleme of authentification, I just need to connect to the correct port with socket |
Hello,
I would like to say first 'THANKS YOU' for your work.
I'm trying to create several FeathersjsApps where each app has its own authentication system.
I managed to do the setup so that the applications communicate with each other on the server side.
The current concern is that I don't know how to do it on the client side to authenticate on each App
I don't know how to get something like.
client.App('firstAuth').authenticate
Link to github code : https://github.com/THEJean-Kevin/feathersjs-test-distributed
The text was updated successfully, but these errors were encountered: