<?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>Question Re: CAP Java: Update JWT token to fetch new roles in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cap-java-update-jwt-token-to-fetch-new-roles/qaa-p/12523358#M4694166</link>
    <description>&lt;P&gt;Technically I could imagine this would be possible with the &lt;A href="https://docs.cloudfoundry.org/api/uaa/version/75.5.0/index.html#refresh-token"&gt;Refresh Token Flow&lt;/A&gt;, implicitly used by &lt;A href="https://github.wdf.sap.corp/xs2/approuter.js"&gt;approuter&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;But I have never tested whether roles / scopes contained in the JWT get updated.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Oct 2021 07:52:40 GMT</pubDate>
    <dc:creator>former_member129581</dc:creator>
    <dc:date>2021-10-14T07:52:40Z</dc:date>
    <item>
      <title>CAP Java: Update JWT token to fetch new roles</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-java-update-jwt-token-to-fetch-new-roles/qaq-p/12523356</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
  &lt;P&gt;we are developing a CAP Java application and are using the default XSUAA authentication with spring boot like described &lt;A href="https://cap.cloud.sap/docs/java/security#authentication"&gt;here&lt;/A&gt;. We have mapped a role collection via attribute mapping on SAP BTP. We have an API call which assigns this attribute to a user in our custom IDP. &lt;/P&gt;
  &lt;P&gt;We have the problem now, that the JWT is not changed after this API call and so not containing the new role.&lt;BR /&gt;Is there a way to update/renew the JWT or fetching a new JWT without forcing the user to relogin?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;
  &lt;P&gt;Chris&lt;/P&gt;
  &lt;H3&gt;&lt;/H3&gt;</description>
      <pubDate>Wed, 13 Oct 2021 18:02:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-java-update-jwt-token-to-fetch-new-roles/qaq-p/12523356</guid>
      <dc:creator>christoffer_fuss</dc:creator>
      <dc:date>2021-10-13T18:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: CAP Java: Update JWT token to fetch new roles</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-java-update-jwt-token-to-fetch-new-roles/qaa-p/12523357#M4694165</link>
      <description>&lt;P&gt;I think the only way to update the JWT is to ask the user to logout and login again.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 19:19:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-java-update-jwt-token-to-fetch-new-roles/qaa-p/12523357#M4694165</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2021-10-13T19:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: CAP Java: Update JWT token to fetch new roles</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-java-update-jwt-token-to-fetch-new-roles/qaa-p/12523358#M4694166</link>
      <description>&lt;P&gt;Technically I could imagine this would be possible with the &lt;A href="https://docs.cloudfoundry.org/api/uaa/version/75.5.0/index.html#refresh-token"&gt;Refresh Token Flow&lt;/A&gt;, implicitly used by &lt;A href="https://github.wdf.sap.corp/xs2/approuter.js"&gt;approuter&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;But I have never tested whether roles / scopes contained in the JWT get updated.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 07:52:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-java-update-jwt-token-to-fetch-new-roles/qaa-p/12523358#M4694166</guid>
      <dc:creator>former_member129581</dc:creator>
      <dc:date>2021-10-14T07:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: CAP Java: Update JWT token to fetch new roles</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-java-update-jwt-token-to-fetch-new-roles/qaa-p/12523359#M4694167</link>
      <description>&lt;P&gt;Hi Alexander,&lt;/P&gt;&lt;P&gt;interresting thought. But do you think this would be also an option when using the managed approuter?&lt;/P&gt;&lt;P&gt;CU&lt;BR /&gt;Gregor&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 14:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-java-update-jwt-token-to-fetch-new-roles/qaa-p/12523359#M4694167</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2021-10-14T14:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: CAP Java: Update JWT token to fetch new roles</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-java-update-jwt-token-to-fetch-new-roles/qaa-p/12523360#M4694168</link>
      <description>&lt;P&gt;Hi Gregor, not sure, I would ask the question to approuter team &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 08:25:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-java-update-jwt-token-to-fetch-new-roles/qaa-p/12523360#M4694168</guid>
      <dc:creator>former_member129581</dc:creator>
      <dc:date>2021-10-15T08:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: CAP Java: Update JWT token to fetch new roles</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-java-update-jwt-token-to-fetch-new-roles/qaa-p/12523361#M4694169</link>
      <description>&lt;P&gt;Thanks for helping. I will try it out and let you know the result &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Sun, 17 Oct 2021 20:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-java-update-jwt-token-to-fetch-new-roles/qaa-p/12523361#M4694169</guid>
      <dc:creator>christoffer_fuss</dc:creator>
      <dc:date>2021-10-17T20:17:43Z</dc:date>
    </item>
  </channel>
</rss>

