Skip to content

JWT generation for account identifiers including a local zone  #61

Description

@juschi24

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions