in reply to Re^4: Need to resolve the API call query
in thread Need to resolve the API call query
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Need to resolve the API call query
by davido (Cardinal) on Jun 09, 2021 at 22:03 UTC | |
The module is a bad choice for the following reasons: The module author tells you in the documentation not to use the module. It wouldn't be productive to try to find an author who has been absent for eight years, to ask questions or to ask for bug-fixes in a module that has been marked "beta" for a decade. If it were me, I would investigate other OAuth modules and choose one that is actively maintained. Dave | [reply] |
by chandantul (Scribe) on Jun 10, 2021 at 22:52 UTC | |
Hi Dave,Thanks for your kind responses. I have contacted the author and fork the module from github and made possible to redirect to our OKTA authorization page by modifying ReuestTokenV2.pm. Please check below code snippet that made it possible but one thing how can i capture the headers query string parameter from browser My main goal is to capture the query string parameter "code" in order to get the value and utlize the same to get the access_token from our OKTA authorization server. I am trying to code sub function in my OP.pm, I was wondering i could utlize the HTTP request in same app.psgi
Please check below config dev.pm
| [reply] [d/l] [select] |
|
Re^6: Need to resolve the API call query
by 1nickt (Canon) on Jun 09, 2021 at 22:07 UTC | |
Aren't you running Dancer2? Have you tried Dancer2::Plugin::Auth::OAuth? That's what I use.
The way forward always starts with a minimal test.
| [reply] |
by chandantul (Scribe) on Jun 10, 2021 at 23:05 UTC | |
Sure, Can you please let me know if this is the same app.psgi or the configuration will be different? My main goal is to capture the query string parameter "code" in order to get the value and utlize the same to get the access_token from our OKTA authorization server. I am trying to code sub function in my OP.pm, I was wondering i could utilize the HTTP request in order to collect the query string parameter code in same session and it won't ask for authentication.
Its redirecting again to authorization page as per the content but i was wondering this will get me the authrization code as its implemented on to the same app and i was using the same browser session without further asking the password.. Please let me know what should be my approch to collect query string parameter code from browser headers in order to get the access_token from Authorization server? Please let me know if any more details are needed My webapp.pm
| [reply] [d/l] [select] |
by chandantul (Scribe) on Jun 16, 2021 at 22:35 UTC | |
Hi, I have switched to Dancer2::Plugin::Auth::OAuth and would like to use the same for authorization. Could you please confirm the if this would be the app.psgi but its not loading with below configuration. Do i need to add below configuration inside plack builder. This supposed to work without Plack builder. Please let me know app.psgi
| [reply] [d/l] |