-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authorization Process Issue with JWT #145
Comments
Hey Przemek, What version of the R package are you using? It could be several things that are causing this issue. Issue #10 is in reference to Oauth authorization token refresh so that would be completely different. The error is stating you don't have the Global Company Id and User ID set as session objects. Since you are getting the auth success notification and also able to pull |
Hey Ben, |
Hello All, |
Hey Przemek, In v0.3.0 we changed the way authentication for JWT is done. When it was first introduced into the package in v0.2.0 the authentication function looked for a series of global variables but in v0.3.0 we made it easier by referencing the json file and key file only. Can you verify that your .Renviron looks like the following:
|
My .Renviron: AW_CLIENT_ID = "xxx" and my auth_file.json: { Should I remove unnecessary variables from .Renviron file? |
What is the difference between the get_me() query (which works for me) and the aw_get_metrics() wich generate errors: Do we use the same JWT token in both cases? |
Yes, both situations use the same JWT but the |
It's good, I can pull data from API. I changed my project permissions (from developer to admin) and aw_workspace_report works correctly :-) Ben, thank you very much for your help. Adobeanalyticsr is a great tool !!! P.S. By the way, in the beginning I wasted a lot of time finding out that in the aw_workspace_report the req_body = "" is the path to the json file and not the json string copied from Workspace as mentioned in R Help (lol). |
Dear ALL,
Since 10/05/2022 I can't download data using aw_workspace_report with JWT authorization. In my case I have the confirmation message: "Successfully authenticated with JWT: access token valid until 2022-05-19 12:09:04" (aw_auth_with('jwt'), aw_auth()) then
get_me() works correctly. However when I try to download some data with aw_workspace_report:
result_df <- aw_workspace_report(req_body = "C:\Users\Reporting\test.json", company_id = Sys.getenv("AW_COMPANY_ID"))
I have still message:
"Request failed [401]. Retrying in 1 seconds..."
or
aw_get_reportsuites()
"Request failed [404]. Retrying in 1 seconds...
Request failed [404]. Retrying in 3.6 seconds...
Error in handle_api_errors(resp = req, body = body) : errorCode: 404
errorDescription: Could not find analytics user for globalCompanyId=xxx and imsUserId=[email protected]"
Can you help me please?
P.S. Everything worked fine until monday (09/05/2022).
I also checked the validity of the keys on Adobe Console API , everything is OK.
My issue is probably similar to:
#10
but I am not sure.
Regards Przemek
The text was updated successfully, but these errors were encountered: