Forum Discussion
Data gateway datasource connection needs reauthentication everyday
- Anonymous2 years ago
Hi RMuoni
Here are some steps to help you resolve or manage this issue:
1. Token Expiry Confirmation: Check the expiration policy for your OAuth2 tokens. If the tokens are indeed set to expire every 24 hours, this would align with the issue you are experiencing.
2. Automatic Token Refresh: Ideally, your authentication setup should support automatic refreshing of tokens. This can usually be configured in the application that manages your SQL server connections (like Power BI). Ensure that your application is set up to automatically refresh tokens. This might involve:
Checking the configuration settings in Power BI or the gateway managing these connections.
Implementing a script or using middleware that can automatically refresh the tokens when they are close to expiring.Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi RMuoni
Here are some steps to help you resolve or manage this issue:
1. Token Expiry Confirmation: Check the expiration policy for your OAuth2 tokens. If the tokens are indeed set to expire every 24 hours, this would align with the issue you are experiencing.
2. Automatic Token Refresh: Ideally, your authentication setup should support automatic refreshing of tokens. This can usually be configured in the application that manages your SQL server connections (like Power BI). Ensure that your application is set up to automatically refresh tokens. This might involve:
Checking the configuration settings in Power BI or the gateway managing these connections.
Implementing a script or using middleware that can automatically refresh the tokens when they are close to expiring.
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.