Giter VIP home page Giter VIP logo

okta-ruby-rails6-crud-sample's Introduction

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.

okta-ruby-rails6-crud-sample's People

Contributors

andrewvanbeek-okta avatar quorralyne avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.