Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion oidc/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func getTokenOpts(opt ...Option) tokenOptions {
// UnmarshalClaims will retrieve the claims from the provided raw JWT token.
func UnmarshalClaims(rawToken string, claims interface{}) error {
const op = "UnmarshalClaims"
parts := strings.Split(string(rawToken), ".")
parts := strings.SplitN(rawToken, ".", 4)
if len(parts) != 3 {
return fmt.Errorf("%s: malformed jwt, expected 3 parts got %d: %w", op, len(parts), ErrInvalidParameter)
}
Expand Down
Loading