Replies: 2 comments
-
Fixed with this example -> https://github.com/mdodell/rodauth-linkedin-api |
Beta Was this translation helpful? Give feedback.
-
You could use the callback route provided by Alternatively, you could implement your own callback route, logging the user in as follows: account = Account.create(...)
rodauth.account_from_id(account.id)
rodauth.login("password") # or `rodauth.login_session("password")` without redirect With Rodauth, there is no need to create fake passwords, as passwords are optional by design.
Quite the contrary,
Not sure what the route should do exactly, but you should be able to define custom routes in Rails controllers, there is no need to define them in the Roda middleware. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to implement login via omniauth on a Rails API app? The React FE handles the auth and redirect to google and gets back an
idToken
which is verifiable in the Rails app and used to determine the Google user (get their email, full name, etc).How can one persist these users from and sign them in immediately after creation using rodauth seeing the app already uses rodauth-rails for authentication. A couple of scenarios:
rodauth.login(user)
. How can one approach this?/google
seemed only possible inrodauth_app.rb
and responding to the request with a logged in user and jwt token is essential as we would for a normal login, but that seems inaccessible atm.Thanks
Beta Was this translation helpful? Give feedback.
All reactions