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

Failed to parse Okta OIDC app (JWK creation date is in the wrong format) #459

Open
alex-entro opened this issue May 16, 2024 · 4 comments
Open
Labels
bug Something isn't working stale waiting-response

Comments

@alex-entro
Copy link

Describe the bug?

The parsing of an application failed (sdk v2), because the format of the "created" field of a JWK is not the expected one.

What is expected to happen?

This code is supposed to succeed:

var app okta.App
app = okta.NewOpenIdConnectApplication()
app, _, err := a.sdk.Application.GetApplication(ctx, appID, app, nil)

What is the actual behavior?

This code fails for one specific app with the error:

"parsing time \"2023-07-17 11:28:57 +0000 UTC\" as \"2006-01-02T15:04:05Z07:00\": cannot parse \" 11:28:57 +0000 UTC\" as \"T\""

After investigation, this is the part which is wrongly formatted:

            "jwks":
            {
                "keys":
                [
                    {
                        "created": "2023-07-17 11:28:57 +0000 UTC",
                    }
                ]
            }

Reproduction Steps?

It's specific to the app which fails

Additional Information?

No response

Golang Version

1.22.1

SDK Version

github.com/okta/okta-sdk-golang/v2 v2.20.0

OS version

No response

@alex-entro alex-entro added the bug Something isn't working label May 16, 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.

@duytiennguyen-okta
Copy link
Contributor

Can you reproduced this in the latest version of the sdk? V4.1.0?

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

github-actions bot commented Jul 6, 2024

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 Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale waiting-response
Projects
None yet
Development

No branches or pull requests

2 participants