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

JwtSecurityTokenConverter initial commit #2117

Merged
merged 2 commits into from
Jun 27, 2023
Merged

Conversation

keegan-caruso
Copy link
Contributor

No description provided.

return new JwtSecurityToken(header, payload);
}

throw new ArgumentException("token.EncodedToken or token.Header and token.Payload must be set");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

token

Should we include an aka.ms link which we can later populate w/details on how a dev should address this error?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jennyf19 if we fix the bug in Wilson #2065

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Thanks.

Copy link
Collaborator

@jennyf19 jennyf19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@keegan-caruso keegan-caruso marked this pull request as ready for review June 20, 2023 22:40
{
return new JwtSecurityToken(token.EncodedToken);
}
else if (token.Header != null && token.Payload != null)
Copy link
Member

@brentschmaltz brentschmaltz Jun 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we fix the bug where JsonWebToken.EncodedToken is never null, we will not need this.
Also, you could write: new JwtSecurityToken(token.EncodedHeader + "." token.EncodedPayload + ".")

Wilson bug: #2065

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Believe this is addressed, @brentschmaltz what do you think?

@keegan-caruso keegan-caruso merged commit 1a89565 into dev7x Jun 27, 2023
@keegan-caruso keegan-caruso deleted the kecaruso/json-jwt-ctor branch June 27, 2023 19:19
brentschmaltz pushed a commit that referenced this pull request Jul 25, 2023
brentschmaltz pushed a commit that referenced this pull request Jul 28, 2023
brentschmaltz pushed a commit that referenced this pull request Sep 6, 2023
brentschmaltz pushed a commit that referenced this pull request Sep 7, 2023
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.

4 participants