Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow updating JWT authentication client assertions #487

Open
ArikWiz opened this issue Sep 9, 2024 · 2 comments
Open

Allow updating JWT authentication client assertions #487

ArikWiz opened this issue Sep 9, 2024 · 2 comments
Labels
enhancement New feature or request stale

Comments

@ArikWiz
Copy link

ArikWiz commented Sep 9, 2024

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

@ArikWiz ArikWiz added the enhancement New feature or request label Sep 9, 2024
Copy link

This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale label.

Copy link

This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale label.

@github-actions github-actions bot added the stale label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

2 participants