oktadev / okta-ruby-rails6-crud-sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails 6 sample

Getting Started

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

Use Okta for Identity

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.

Links

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

Help

Please post any questions as issues in this forum, as questions on the blog post, or on Stack Overflow with an "okta" tag.

License

Apache 2.0, see LICENSE.

About


Languages

Language:Ruby 81.1%Language:HTML 10.1%Language:JavaScript 7.2%Language:CSS 1.0%Language:SCSS 0.5%