Skip to content

Jwt grant expired, but it still can use #3610

@Class-public

Description

@Class-public

Preflight checklist

Ory Network Project

No response

Describe the bug

Jwt grant expired, but it still can use

Reproducing the bug

1、create a trust relationship for a JWT issuer,and set expires_at after 30 seconds.
reqParam := make(map[string]interface{}) reqParam["allow_any_subject"] = true reqParam["expires_at"] = time.Now().Add(time.Second * 30).UTC() reqParam["issuer"] = issuer reqParam["jwk"] = map[string]interface{}{ "use": "sig", "kty": "RSA", "kid": kid, "alg": "RS256", "n": nBase64, "e": eBase64, } reqParam["scope"] = []string{"all"}
2、got assertion and use assertion exchange token
scope=all&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion=xx
3、repeate setp 2

Relevant log output

No response

Relevant configuration

No response

Version

v2.1.2

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions