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

unable to login with OAUTH2 #223

Closed
leocwlau opened this Issue Jul 17, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@leocwlau
Contributor

leocwlau commented Jul 17, 2017

it seems Adobe had changed the token returned from oauth2.0_token method. It is now something like:

<oauth_endpoint>
request: https://marketing.adobe.com
authorize: https://marketing.adobe.com/authorize
access: https://api.omniture.com/token
<oauth_app> RSiteCatalyst
key: xxxxxxxxxxx
secret: xxxxxxxxx
<credentials> access_token, expires_in, token_type, scope, success

This breaks the following code as sc.cred$access_token, sc.cred$scope, sc.cred$client_id, and sc.cred$expires are all NULL
scc <- list(endpoint.url=endpoint.url,
auth.method=auth.method,
access_token=sc.cred$access_token,
scope=sc.cred$scope,
client_id=sc.cred$client_id,
expires=sc.cred$expires,
debug = debug.mode,
locale = locale
)

I had cloned the RSiteCatalyst source and rebuilt with the following
scc <- list(
endpoint.url = endpoint.url,
auth.method = auth.method,
access_token = sc.cred$credentials$access_token,
scope = sc.cred$credentials$scope,
client_id = sc.cred$app$key,
expires = sc.cred$credentials$expires_in,
debug = debug.mode,
locale = locale
)

@randyzwitch

This comment has been minimized.

Show comment
Hide comment
@randyzwitch

randyzwitch Jul 17, 2017

Owner

Thanks for reporting this. Is this something you are willing to submit as a pull request?

Owner

randyzwitch commented Jul 17, 2017

Thanks for reporting this. Is this something you are willing to submit as a pull request?

@leocwlau

This comment has been minimized.

Show comment
Hide comment
@leocwlau

leocwlau Jul 18, 2017

Contributor

will do. moreover, it seems there are still two outstanding issue from the OAUTH:

  1. no token refresh after expire
  2. access grant error if manually delete .httr-oauth for re-authentication
Contributor

leocwlau commented Jul 18, 2017

will do. moreover, it seems there are still two outstanding issue from the OAUTH:

  1. no token refresh after expire
  2. access grant error if manually delete .httr-oauth for re-authentication
@randyzwitch

This comment has been minimized.

Show comment
Hide comment
@randyzwitch

randyzwitch Jul 20, 2017

Owner

Fixed by #224, merging to master and submitting to CRAN shortly

Owner

randyzwitch commented Jul 20, 2017

Fixed by #224, merging to master and submitting to CRAN shortly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment