Prerequisites:
Clone this application to your local hard drive using Git.
git clone https://github.com/oktadeveloper/okta-ruby-rails6-crud-sample.git
Install this example's dependencies, create the database, and run the migrations:
bundle install
bundle install
rake db:create
You will need to create an OIDC Application in Okta to get your configuration settings to log in. You'll need to create an Okta developer account and register your app to get a client ID. Head on over to developer.okta.com/signup if you'd like to do this in your browser.
On the Create New Application page, select Web. Name your app Ionic Social
, and configure it as follows:
- Base Uri:
*
http://localhost:3000
- Login redirect URIs:
http://localhost:3000/users/auth/oktaoauth/callback
- Grant type allowed:
- Authorization Code
- Click Done
For the extra Crud steps follow the blog to add a custom attribute of "gemstone", help link .
Run rails s
and open http://localhost:3000
in a new incognito window. Click Sign in with Okta to sign in to your Okta developer account.
This example uses the following open source libraries:
This sample also uses a generic Okta omniauth Strategy, but it is not a official Okta rails SDK
Please post any questions as issues in this forum, as questions on the blog post, or on Stack Overflow with an "okta" tag.
Apache 2.0, see LICENSE.