All threads / Implement Authentication Service in Rails

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Implement Authentication Service in Rails

Nelson Casanova asked in Rails

Hello,

I'm currently looking for options to create some form of authentication service based on Rails.

I've got several microservices like app1.site.com app2.site.com and app3.site.com and I would like to have something like auth.site.com so users only have to create their accounts once and use them across sites...

I don't think there's a Devise option that can be used. My research points to Okta or Auth0 which are now, very recently, the same apparently.

What's the right way to implement this? whether is through an external service provider or some other form of custom build application with the help of already existing gems.

I came to the forum for exactly this question.
I do not have the full answer but it would appear creating an Oauth2 service as your auth.site.com app is a good start.

The auth service will act as authorizer to any pre-registered apps such as app1 and app2 etc Chris has some good content on Oauth2 so give those a watch for an intro and then work out your strategy form there.

If you are a customer of Publix then you must take part in the Publix survey cause Publix organized. https://surveysguide.onl/

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 47,776+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.