Does it refresh the tokens when using IAM authentication? #271
-
Hi, I want to use aws-advanced-jdbc-driver for IAM authentication to RDS. Internally this wrapper must be generating the RDS token and use that as password for the database connection. The RDS token has 15 mins expiry time. So my question is whether this wrapper will refresh and get new token when the current one expires? It would help if you can point me to the code in this repo which does this refresh of tokens. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @visa2learn, |
Beta Was this translation helpful? Give feedback.
Hi @visa2learn,
Yes, the AWS Advanced JDBC Driver will check and refresh the token whenever you establish a new connection.
https://github.com/awslabs/aws-advanced-jdbc-wrapper/blob/main/wrapper/src/main/java/software/amazon/jdbc/plugin/IamAuthConnectionPlugin.java#L125