Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
797ac593
Commit
797ac593
authored
Oct 13, 2019
by
Sietse Ringers
Browse files
fix: validate session JWT structure during parsing and validating
parent
9a92f3d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
messages.go
View file @
797ac593
...
...
@@ -294,6 +294,9 @@ func ParseRequestorJwt(action string, requestorJwt string) (RequestorJwt, error)
if
_
,
_
,
err
:=
new
(
jwt
.
Parser
)
.
ParseUnverified
(
requestorJwt
,
retval
);
err
!=
nil
{
return
nil
,
err
}
if
err
:=
retval
.
RequestorRequest
()
.
Validate
();
err
!=
nil
{
return
nil
,
errors
.
WrapPrefix
(
err
,
"Invalid JWT body"
,
0
)
}
return
retval
,
nil
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment