OAuth in API-Only App #190
Unanswered
Graditude-Dev
asked this question in
Q&A
Replies: 1 comment
-
I realized that there was a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @janko - big fan of the library! I realized that our OAuth implementation was out-of-date, and I was wondering how I could go about translating it. We're using Rodauth for authentication in an API Only Mode app, with a separate React frontend.
I was reading your article here and had some questions.
1.) Where do scopes come into play here? In our old configuration, we had to specify the
scope
of the API, thefields
and thecallback_path
. Do you not have to do that in your Omniauth extension?2.) Does this support 3-legged OAuth? I'm following the LinkedIn documentation here. What would be the best way of going about it? My client would be producing a URL, and then I need to have a specific callback route in my backend application.
An API-Only tutorial/some help here would be super appreciated!
Old Setup for context
Originally, I had a middleware, called
omniauth.rb
-which connected to a custom method in my Rodauth Controller:
We had a generic route-setup, mapping a callback like so:
Beta Was this translation helpful? Give feedback.
All reactions