Skip to content
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

SKUs SDK Time Limited V2 Creds Presentation Wrong for today + 1 #26716

Closed
husobee opened this issue Nov 12, 2022 · 4 comments · Fixed by brave/brave-core#15926
Closed

SKUs SDK Time Limited V2 Creds Presentation Wrong for today + 1 #26716

husobee opened this issue Nov 12, 2022 · 4 comments · Fixed by brave/brave-core#15926

Comments

@husobee
Copy link

husobee commented Nov 12, 2022

Description

Credential presentation for time limited v2 credentials is incorrect due to how the token preimage is stored upon receiving the signed credentials from the server. This causes the same token preimage to be submitted for all time intervals.

Steps to Reproduce

Purchase VPN on staging.
Wait one Day.
Attempt to turn on the VPN

Actual result:

VPN will not work.

Expected result:

VPN should work

Reproduces how often:

Easily

Brave version (brave://version info)

1.47.66

Version/Channel Information:

  • Can you reproduce this issue with the current release?
  • Can you reproduce this issue with the beta channel?
  • Can you reproduce this issue with the nightly channel?

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields?
  • Does the issue resolve itself when disabling Brave Rewards?
  • Is the issue reproducible on the latest version of Chrome?

Miscellaneous Information:

@stephendonner
Copy link

stephendonner commented Nov 12, 2022

Confirmed using

Brave 1.47.61 Chromium: 107.0.5304.110 (Official Build) nightly (x86_64)
Revision 2a558545ab7e6fb8177002bf44d4fc1717cb2998-refs/branch-heads/5304@{#1202}
OS macOS Version 13.1 (Build 22C5044e)

Steps to Reproduce:

  1. delete any BraveVPN OS-configs, first
  2. install 1.47.611
  3. launch Brave using --vmodule="*/skus/*"=2 --enable-logging=stdrr --v=0
  4. click Maybe later
  5. click Skip welcome tour
  6. open brave://flags
  7. set brave://flags/#brave-vpn to Enabled
  8. click Relaunch (if you want to retain logging, CTRL+C and relaunch from Terminal/console
  9. click No thanks on the Tired of cookie consent notices? dialog
  10. load account.bravesoftware.com
  11. enter staging credentials from 1Password
  12. enter a unique email address such as "unique99@mailinator.com" or similar
  13. click Get login link
  14. open the Log in to your Brave Pre... email (https://www.mailinator.com/v4/public/inboxes.jsp?to=unique99 in the above case)
  15. click on either the Log in to Brave button -or- the link below it
  16. click Browse plans on https://account.bravesoftware.com/account/
  17. scroll down
  18. click on Buy now beneath Brave VPN Subscription
  19. complete the Stripe checkout using https://stripe.com/docs/testing#testing-interactively
  20. if you're able to, click on the VPN button in the browser toolbar, and attempt to add and connect to the BraveVPN config
  21. confirm you can connect
  22. now, set the system clock ahead a day
  23. re-run Brave from your commandline, and click on the VPN button in the browser toolbar

Actual Results:

Screenshot 2022-11-13 at 11 15 00 AM

@stephendonner
Copy link

@stephendonner
Copy link

Verified PASSED using

Brave 1.46.122 Chromium: 108.0.5359.48 (Official Build) beta (x86_64)
Revision 18ceeca0d99318e70c00d2e04d88aa55488b5c63-refs/branch-heads/5359@{#854}
OS macOS Version 11.7.1 (Build 20G918)

Steps:

  1. deleted my previous BraveVPN OS-configs
  2. installed 1.46.122
  3. launched Brave using --vmodule="*/skus/*"=2 --enable-logging=stdrr --v=0
  4. clicked Maybe later
  5. clicked Skip welcome tour
  6. opened brave://flags
  7. set brave://flags/#brave-vpn to Enabled
  8. clicked Relaunch (if you want to retain logging, CTRL+C and relaunch from Terminal/console
  9. clicked No thanks on the Tired of cookie consent notices? dialog
  10. loaded account.bravesoftware.com
  11. entered staging credentials from 1Password
  12. entered a unique email address, issue26716@mailinator.com
  13. clicked Get login link
  14. opened the Log in to your Brave Pre... email in the above case)
  15. clicked on either the Log in to Brave button -or- the link below it
  16. clicked Browse plans on https://account.bravesoftware.com/account/
  17. scrolled down
  18. clicked on Buy now beneath Brave VPN Subscription
  19. completed the Stripe checkout using https://stripe.com/docs/testing#testing-interactively
  20. clicked on the VPN button in the browser toolbar, add and connect to the BraveVPN config
  21. confirm you can connect
  22. shut down Brave
  23. set the system clock ahead a day
  24. re-ran Brave from my commandline, and click on the VPN button in the browser toolbar

Confirmed I could use VPN on the subscription day + the day after

example example example example
Screen Shot 2022-11-21 at 11 28 21 PM Screen Shot 2022-11-21 at 11 29 56 PM Screen Shot 2022-11-22 at 11 30 08 PM Screen Shot 2022-11-22 at 11 36 22 PM

@GeetaSarvadnya
Copy link

GeetaSarvadnya commented Nov 23, 2022

Verification PASSED on

Brave | 1.46.123 Chromium: 108.0.5359.48 (Official Build) beta (64-bit)
-- | --
Revision | 18ceeca0d99318e70c00d2e04d88aa55488b5c63-refs/branch-heads/5359@{#854}
OS | Windows 10 Version 21H2 (Build 19044.2251)

Verified the steps which @stephendonner mentioned above

Confirmed I could use VPN on the subscription day + the day after

example example example example
image image image image

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