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

JWT statement #699

Closed
andrea-dintino opened this issue Jul 6, 2023 · 1 comment
Closed

JWT statement #699

andrea-dintino opened this issue Jul 6, 2023 · 1 comment

Comments

@andrea-dintino
Copy link
Member

Zencode

Given I have a 'string dictionary' named 'header'
Given I have a 'string dictionary' named 'payload'
Given I have a 'string' named 'password'

When I create the jwt hs256 of 'header' and 'payload' using 'password'

Then print the 'jwt hs256'

Input

{
	"payload": {
		"sub": "1234567890",
		"name": "John Doe",
		"iat": 1516239022
	},
	"password": "password"
}

output:

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.kXSdJhhUKTJemgs8O0rfIJmUaxoSIDdClL_OPmaC7Eo

@jaromil
Copy link
Member

jaromil commented Jul 10, 2023

fixed in #700

@jaromil jaromil closed this as completed Jul 10, 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

No branches or pull requests

2 participants