<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can I change Service Principal's OAuth token's expiration date? in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/can-i-change-service-principal-s-oauth-token-s-expiration-date/m-p/38563#M5522</link>
    <description>&lt;P class=""&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85375"&gt;@marchino&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Based on the document &lt;A href="https://docs.databricks.com/dev-tools/authentication-oauth.htmlThe" target="_blank"&gt;https://docs.databricks.com/dev-tools/authentication-oauth.htmlThe&lt;/A&gt; access token will expire in one hour. You must request a new OAuth access token after the expiration. Personal Access Token is good until it expires but the service principal has to request a session token once an hour. Personal Access Tokens for users can be generated with any expiration date, including an indefinite lifetime, but Personal Access Tokens for service principals typically expire within one hour. This is because service principals are recommended for use with automated tools, systems, scripts, and apps, and it is considered a security best practice to have tokens that expire frequently to reduce the risk of unauthorized access.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2023 11:17:51 GMT</pubDate>
    <dc:creator>NandiniN</dc:creator>
    <dc:date>2023-07-27T11:17:51Z</dc:date>
    <item>
      <title>Can I change Service Principal's OAuth token's expiration date?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/can-i-change-service-principal-s-oauth-token-s-expiration-date/m-p/38481#M5517</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;since I have to read from a Databricks table from an external API I created a Service Principal that would start a cluster and perform the operation, to authenticate the request on behalf of the Service Principal I generate the OAuth token following a Databricks guide (&lt;A href="https://docs.gcp.databricks.com/dev-tools/authentication-google-id.html)" target="_blank"&gt;https://docs.gcp.databricks.com/dev-tools/authentication-google-id.html)&lt;/A&gt;&amp;nbsp;but I see that the token expires in 1 hour, how can I change that?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 10:53:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/can-i-change-service-principal-s-oauth-token-s-expiration-date/m-p/38481#M5517</guid>
      <dc:creator>marchino</dc:creator>
      <dc:date>2023-07-26T10:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change Service Principal's OAuth token's expiration date?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/can-i-change-service-principal-s-oauth-token-s-expiration-date/m-p/38518#M5519</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thank you for your answer, but even though I made the request including in the POST's body the parameter "lifetime_seconds" with value 86400 it still returns me a token with a lifetime of 3600.&lt;/P&gt;&lt;P&gt;What could be the problem? In addition to that I'm not seeing any reference to the "lifetime_seconds" parameter in the link you posted, thank you again for your support!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 16:18:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/can-i-change-service-principal-s-oauth-token-s-expiration-date/m-p/38518#M5519</guid>
      <dc:creator>marchino</dc:creator>
      <dc:date>2023-07-26T16:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change Service Principal's OAuth token's expiration date?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/can-i-change-service-principal-s-oauth-token-s-expiration-date/m-p/38563#M5522</link>
      <description>&lt;P class=""&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85375"&gt;@marchino&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Based on the document &lt;A href="https://docs.databricks.com/dev-tools/authentication-oauth.htmlThe" target="_blank"&gt;https://docs.databricks.com/dev-tools/authentication-oauth.htmlThe&lt;/A&gt; access token will expire in one hour. You must request a new OAuth access token after the expiration. Personal Access Token is good until it expires but the service principal has to request a session token once an hour. Personal Access Tokens for users can be generated with any expiration date, including an indefinite lifetime, but Personal Access Tokens for service principals typically expire within one hour. This is because service principals are recommended for use with automated tools, systems, scripts, and apps, and it is considered a security best practice to have tokens that expire frequently to reduce the risk of unauthorized access.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 11:17:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/can-i-change-service-principal-s-oauth-token-s-expiration-date/m-p/38563#M5522</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2023-07-27T11:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change Service Principal's OAuth token's expiration date?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/can-i-change-service-principal-s-oauth-token-s-expiration-date/m-p/38567#M5523</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85375"&gt;@marchino&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check if this is of your interest&amp;nbsp;&lt;A href="https://kb.databricks.com/en_US/security/set-an-unlimited-lifetime-for-service-principal-access-token" target="_blank"&gt;https://kb.databricks.com/en_US/security/set-an-unlimited-lifetime-for-service-principal-access-token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 11:22:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/can-i-change-service-principal-s-oauth-token-s-expiration-date/m-p/38567#M5523</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2023-07-27T11:22:32Z</dc:date>
    </item>
  </channel>
</rss>

