I want to connect to snowflake database and it is using OAuth 2.0 how to connect with the database. I am able to connect initially (after running the springboot application) but after an hour its showing Oauth Token Expired.
I have registered my application using Azure AD and got client id, secret, scope, grantType for token generation
I am currently receiving the token using WebClient and passing it as a password to the Datasource connection. I know that the connection pool is not using the updated password how to configure it and is there any better way than WebClient or Am I missing anything? I am working on production is DriverManager a good approach or DataSource.