Skip to content

Allow updating JWT authentication client assertions #487

@ArikWiz

Description

@ArikWiz

Describe the feature request?

When using JWT authentication, the client assertions in the configuration are static, and won't be updated after the token expires
in

func (a *JWTAuth) Authorize ... {
   ....
   accessToken, nonce, privateKey, err := getAccessTokenForPrivateKey(a.httpClient, a.orgURL, a.clientAssertion ...)
   ....
}

compare that to:

func (a *PrivateKeyAuth) Authorize {
   ...
   clientAssertion, err := createClientAssertion(a.orgURL, a.clientId, a.privateKeySigner)
   ...
}

i think allowing for the ClientAssertion to be a callback rather than a string, in JWTAuthConfig, would solve the issue

New or Affected Resource(s)

okta authentication

Provide a documentation link

No response

Additional Information?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions