Ranvijay sachan
Ranvijay sachan

Reputation: 2444

can we use django authentication as a micro service in different project?

In my project we are trying to create micro service type architecture using djnago/django-rest-framework.

We've some services like:

User management service
Asset Management Service
Tool management service

All three services running on different Ports with different database.

Now my question is,

Can we use user management service in Asset and tools service for Token authentication?

Upvotes: 3

Views: 1789

Answers (1)

Tom Manterfield
Tom Manterfield

Reputation: 7063

This is quite a broad question and without knowing more of your specific architecture, what you have tried and what features you want/need, it will be hard to give anything more than a starting point.

That being said, you could look at setting up a Central Authentication Service. (CAS) There's multiple packages for Django that help you with this.

Try looking into Django CAS NG and Django MamaCAS. Django CAS NG seems to be the more actively developed of the two.

Remember that with microservices, one of the big advantages is that there's nothing forcing you to use the same technology across your entire stack. It may well make sense to have your auth components provided by something entirely different, for example rolling a KeyCloak server to handle SSO.

Upvotes: 2

Related Questions