Skip to content

jwt validation is very slow #104

Description

@roee-hersh

adding the following code:

tv := map[string]string{}
	tv["aud"] = "api://default"
	tv["cid"] = utils.Config.OktaClientID

	jv := verifier.JwtVerifier{
		Issuer:           utils.Config.OktaIssuer,
		ClaimsToValidate: tv,
	}

	result, err := jv.New().VerifyAccessToken(t)

cause every requests which normally takes less then 100MS to take over 1-2 seconds.
is this normal? is there a way to improve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions