'Get CDSID from JWT?
I am wondering if there is any way to be able to fetch the CDSID from a JWT? I can get this information, as of now:
So this question is kind of related to this, might be able to add the CDSID to the JWT in the app manifest in some way? Otherwise I could just split on @ but that doesn't feel to safe :P
Solution 1:[1]
Looking a bit more in the related question, the "upn" value actually is the user principle name. So I guess the solution could look like this:
var cdsId = user.Identity.Name.Split('@')[0]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Henrik Johansson |

