-
Notifications
You must be signed in to change notification settings - Fork 140
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
SNOW-1346563: Authorization issue (Method not found: Void Microsoft.IdentityModel.Tokens.InternalValidators.ValidateLifetimeAndIssuerAfterSignatureNotValidatedSaml) #932
Comments
hi and thanks for raising this issue. The stack snippet you included does not seem to come from Snowflake so I'm wondering how is this issue originating or caused by the Snowflake .NET driver. Can you please provide a runnable reproduction with environment setup so we could reproduce the same issue ? In the meantime I did a quick search and although it's a different type of token, AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet#1792 looks very similar to the issue you're seeing.
If you think this issue is coming from Snowflake, happy to investigate further but I would kindly require you to provide a reproduction and details . Thank you in advance ! |
Thank you! Checked the repro you sent but apparently it needs considerable setup and an Azure subscription too, so will not be trivial to set up and might take some time. Thus in parallel, checked what else we can do here. So dependency That does not mean the issue is coming from Snowflake, though. To confirm you're hitting the issue (or similar issue) which I linked above, could you please, in your repro
If it works now, it is likely due to the issue related to the linked issue, and hopefully the workarounds listed on the linked Microsoft issue help you tackling the problem in the newer version of transitive dependency |
thank you for testing - can you please try the workarounds in the linked Microsoft issue ? The problem does not come from the Snowflake library based on the information I got so far. Another search in https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet points to a possible solution which is already mentioned in the workarounds in the linked issue (all If it doesn't work either (installing the same |
indeed Snowflake.Data does not have a direct dependency on Microsoft.Identity.Model, that's why I mentioned that Look at `obj/project.assets.json' in your project , it's the simplest way to see the dependencies (there are others).
dependency of Snowflake.Data. However, dependencies can have their own dependencies to work correctly and those have to be installed too. So for
and so on. I'm now closing this issue as it does not seem like something originating from Snowflake; rather For a solution, please try the workarounds from the linked issue and if none of them work, please file an Issue directly with the repository mentioned above. |
1.Used: core 6.0
2. OS: windows 10
I add Snowflaka.Data v3.1.0 to project
Run project and try to authenticate to Azure via B2B
It throws exception
MissingMethodException: Method not found: 'Void Microsoft.IdentityModel.Tokens.InternalValidators.ValidateLifetimeAndIssuerAfterSignatureNotValidatedSaml(Microsoft.IdentityModel.Tokens.SecurityToken, System.Nullable
1<System.DateTime>, System.Nullable
1<System.DateTime>, System.String, Microsoft.IdentityModel.Tokens.TokenValidationParameters, System.Text.StringBuilder)'.The text was updated successfully, but these errors were encountered: