oauth api authentication

Rails API with authentication via OAuth using Doorkeeper, Omniauth, and a React Native iOS client.

Rails OAuth Provider

Using an OAuth Provider in Rails allows other applications to login with accounts on our provider and gain access to our Rails app’s API.

Written by Chris Oliver

Rails OAuth Provider App

This app shows you how to setup an OAuth provider in your Rails app. You can create new OAuth apps at http://localhost:5000/oauth/applications

Rails OAuth Client App

This app shows how to connect to your provider Rails app’s API. Users will login using Omniauth.

Omniauth-doorkept

This is the Omniauth library used to connect one Rails app as the client to the OAuth provider Rails app.

Expo ReactNative Client

This is an example React Native iOS and Android app using Expo.io’s AuthSession and SecureStore to login to the API via OAuth and consume it inside a mobile application.