Developing an original API function with doorkeeper and oauth2.

I have had an opportunity to develop an API login function between two web services. The way to do that is a little complex and demanding, so I’ve decided to take a not about necessary knowledge.


This is a gem by which you can develop an API feature easily. Moreover, I used this gem for oauth.

That’s all.


With these gems, user can be given a permission, which means an access token, from an authorization server. This system is defined as RFC6749. The details is here.

Wrap up

You can make an API feature with the knowledge above. I hope that this information would be a help to you.

My LinkedIn account is below! Please contact me!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store