Azure Logic apps Office 365 connection - how to refresh token when lifetime validation failed?

Rachel I 26 Reputation points
2024-09-25T21:00:18.6966667+00:00

In VS Code, I'm developing a logic app workflow to send an email. Leveraging Office 365 connector, I created a connection by signing in my work account. I was able to test it and emails were sent. After a couple of days, I got below error:

"Error from token exchange: Bad Key authorization token. Token must be a valid JWT signed with HS256\r\nFailed to validate token: IDX10223: Lifetime validation failed. The token is expired."

Here's what I'm done so far to refresh token:

  1. From VS Code, I opened designer, and navigated to existing step "Send an email (V2)" to create new connection but left panel just displayed infinite loop.
  2. From VS Code, I created a new workflow and added a new action step: "Send an email (V2)". Left panel displayed window to Create new connection. I entered the required fields: connection name and authentication type. On click of Sign in button. error displayed "Failed to create connection: Unknown error". I was able to created connection before but now it is raising error. What could be the problem?

Can you suggest a way to refresh the token or help me fix the connection problem?


VS Code 1.93.1

Azure Logic (Standard)

Azure Functions Core Tools

Core Tools Version: 4.0.5907

Function Runtime Version: 4.834.3.22875

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,113 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.