You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(httr2)
#> Warning: package 'httr2' was built under R version 4.1.3
authorization_url = "https://sim.logonvalidation.net/authorize"
token_url = "https://sim.logonvalidation.net/token"
client <- oauth_client(
id = "xxx",
secret = "xxx",
token_url = token_url,,
# key = "3ebb2f9d91664b92b759ddebafe3437b"
name = "PRA"
)
url_ <- oauth_flow_auth_code_url(client,
auth_url = authorization_url,
redirect_uri = "http://localhost:4321/redirect")
# HOW TO EXECUTE ABOVE URL AND HOW TO DEFINE STATE VARIABLE?
httr2 has to listen to specific urls, and it currently only listens to /. If Sax bank requires that /redirect appears in the url, we'll need to make some changes to httr2.
Activity
MislavSag commentedon Jun 2, 2022
After experimenting for some time I have found the solution.
I had to change some
httr2to be able to use my redirect url.For example
oauth_flow_auth_code_listenfunction has line:but I need to start the erver on the url http://localhost:4321/redirect
I am not sure how to add
/redirctpart to the url.Than, in part:
I have to add redirect too:
hadley commentedon Jun 2, 2022
Does Sax bank require the
/redirectin the url that you supply to it?MislavSag commentedon Jul 19, 2022
It didn't work without
/redirect, but I am not sure what are all allowed urls.hadley commentedon Jul 19, 2022
httr2 has to listen to specific urls, and it currently only listens to
/. If Sax bank requires that/redirectappears in the url, we'll need to make some changes to httr2.Support non-root path in oauth_flow_auth_code_listen()
Make redirect_uri the primary interface (#294)