<turbo-stream action="update" target="wiki_card"><template>
<h1>How to update the client secret on ODATA connections</h1>
<p>When your current ODATA connection is configured via Azure AD, it can happen that the client secret expires and you need to generate a new one and update your current ODATA connection.The error message that you will see if the client secret has expired is <strong>The REST service returned a status code that is not 20x - i.e. not OK - Status code received: 401 UnauthorizedResponse body: {"error":"invalid_client","error_description":"AADSTS7000222: The provided client secret keys for app 'xxxxxxxxx' are expired.</strong></p><p>In order to do so, please go through the following steps:</p><ol><li>Log in to <a href="https://portal.azure.com">portal.azure.com.</a></li><li>Click on Azure Active Directory.</li></ol><p>In the left panel, click on <strong>App Registrations</strong>. From the App registrations panel, click on the app that you are currently using for your ODATA connection.</p><p>In the left panel, click on <strong>Certificates &amp; secrets</strong>.</p><p>Click <strong>New client secret,</strong> fill in the <strong>Description</strong> and <strong>Expires</strong> fields, and click <strong>Add</strong>.</p><p>Then, you should see the new client secret. Copy the code from the <strong>Value </strong>field, as you will need it later.<br><br><strong><em>Note: Once the secret is generated, you must copy it and store it somewhere safe, as the key will not be shown again. You would need to generate a new one.&nbsp;</em></strong></p><p>3. Next, go to your Rapidi account, log in, and open the <strong>Connections</strong> tab:</p><ul><li>Click on the pencil icon to edit your connection.</li><li>Add the client secret <strong>to the Password field, </strong>then click<strong> Save</strong>.</li><li>Once the client secret it added, click on <strong>Test</strong> to get a final confirmation that the connection is working properly.</li></ul>
</template></turbo-stream>

<turbo-stream action="replace" target="meta_description"><template><meta content='How to update the client secret on ODATA connections' id='meta_description' name='description'></template></turbo-stream>
<turbo-stream action="replace" target="meta_keywords"><template><meta content='Update client secret, ODATA Client Secret Update, Expired Client Secret ODATA' id='meta_keywords' name='keywords'></template></turbo-stream>
<turbo-stream action="update" target="meta_title"><template>How to update the client secret on ODATA connections - MyRapidi Wiki</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
