-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
feat: add JWT implementation #971
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job, couple minor comments, and please merge latest changes into your branch.
It would be nice to have more tests here
All the requirements should be fullfilled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please merge latest changes from main branch and move utility functions from include file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your changes include some submodule related stuff, try to git aubmodule update to get latest we have in repo
Build fails, please fix it |
sorry for problems ... i had merge conflict there |
This pull request introduces the getJWTToken method to the internet module.
Changes
• New Method: getJWTToken
• Purpose: Generates a JWT token.
• Parameters:
• std::optional<std::map<std::string, std::string>> header: The header to be included in the JWT.
• std::optional<std::map<std::string, std::string>> payload: The payload to be included in the JWT.
• std::optionalstd::string refDate: The refference date to be included in the JWT.
• Returns: A std::string representing the generated JWT token.
The implementation using few other methods:
• getJWTAlgorithm
• toJSON
• toBase64UrlEncode