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

JWT generation for account identifiers including a local zone #61

Open
juschi24 opened this issue Dec 5, 2024 · 0 comments
Open

JWT generation for account identifiers including a local zone #61

juschi24 opened this issue Dec 5, 2024 · 0 comments

Comments

@juschi24
Copy link

juschi24 commented Dec 5, 2024

Dear developers, thanks a lot for maintaining this crate, it saves a lot of time!

In our project we are connecting to a snowflake ressource with a servername of the following format: xxxxxxx.eu-central-1.snowflakecomputing.com. Because of that, the generation of a correct JWT is not possible as the function pub fn generate_jwt_token from jwt/src/lib.rs expects a variable full_identifier of the format .. However, in my case the function is called with a full-identifier of the format .<local zone of the cloud ressource (eu-central-1 in my case)>.. As consequence, the generated JWT is invalid and authentification to Snowflake is not possible.

One solution might be to check if the full-identifier includes a local zone and remove that part if so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant