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

fix(storeapi): Allows fallback to the old API for JWT generation #337

Merged
merged 2 commits into from
Oct 18, 2023

Conversation

CarlosNihelton
Copy link
Contributor

The Windows.Services.Store namespace StoreContext class is consistently failing to generate the user JWT without an error message, just returning an empty string, which is not helpful.

To date I'm not sure what's going on under the hood, but the fact is that, once deployed, using the old (deprecated) Windows.ApplicationModel.Store namespace CurrentApp class always succeeds (or generates a useful error message if the access token has issues - such as being expired).

So, this PR adds allows the old namespace call as a fallback for such cases.

With such fix in place I'm seeing the agent logs consistently hitting the wall of the WSL SaaS backend failing to respond to the GET /v1/subscription call, which is only made after we suceed in generating the JWT (which follows sucessfully checking the current expiration date with the Store API).

@CarlosNihelton CarlosNihelton changed the base branch from main to upgrade-go-1.21.3 October 16, 2023 14:03
@CarlosNihelton
Copy link
Contributor Author

I guess we are stuck with the build debian action failing for now.

@CarlosNihelton CarlosNihelton marked this pull request as ready for review October 16, 2023 18:46
@CarlosNihelton CarlosNihelton self-assigned this Oct 16, 2023
Base automatically changed from upgrade-go-1.21.3 to main October 18, 2023 06:55
@EduardGomezEscandell EduardGomezEscandell dismissed their stale review October 18, 2023 06:55

The base branch was changed.

@CarlosNihelton CarlosNihelton merged commit 9801510 into main Oct 18, 2023
33 checks passed
@CarlosNihelton CarlosNihelton deleted the fix-jwt-gen branch October 18, 2023 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants