Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added full paths to the rails files.
  • Loading branch information
barttenbrinke committed Mar 22, 2022
1 parent 898be28 commit 2f4d4a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ end
Additional providers can be added here in the future. Next we wire it
all up using routes, a controller and a login view.

**routes.rb**:
**config/routes.rb**:

```ruby
get 'auth/:provider/callback', to: 'sessions#create'
get '/login', to: 'sessions#new'
```

**sessions_controller.rb**:
**app/controllers/sessions_controller.rb**:
```ruby
class SessionsController < ApplicationController
def new
Expand All @@ -149,7 +149,7 @@ end

Now if you visit `/login` and click the Login button, you should see the
OmniAuth developer login screen. After submitting it, you are returned to your
application at `Sessions#new`. The raise should now display all the Omniauth
application at `Sessions#create`. The raise should now display all the Omniauth
details you have available to integrate it into your own user management.

If you want out of the box usermanagement, you should consider using Omniauth
Expand Down

0 comments on commit 2f4d4a3

Please sign in to comment.