How do I update the JWT sub claim to accountId?

From this ticket, I see the JWT sub claim should be replaced by accountId from key.
https://ecosystem.atlassian.net/browse/AC-2409

However, in my add-on, I am still receiving the “key” as my sub claim. How can I get the accountId as sub claim? My application is based on atlassian connect spring boot.
https://bitbucket.org/atlassian/atlassian-connect-spring-boot/src

Hi @jeffrey,

Your app would need to opt-in to GDPR to receive the accountId’s. More information here: http://blog.developer.atlassian.com/app-opt-in-api-migration/

Cheers,
Anne

1 Like