Skip to content


The Auth package is a lightweight Authentication abstraction layer. This includes a reference to Prism.Core and provides some base events that can be used by the Prism EventAggregator.

This is largely meant to help when dealing with a JWT and you need to be able to see the claims of your user contained in the JWT. Let's assume you had the following JWT:


In the Payload of the JWT we would see the following:

  "sub": "1234567890",
  "given_name": "John",
  "family_name": "Doe",
  "oid": "7d9594e2-6f0e-4285-9493-e2c4ecf898e2",
  "emails": [
  "iat": 1516239022,
  "auth_time": 1516239022,
  "nbf": 1516239022,
  "newUser": false

We can easily parse the JWT and get the user claims provided like:

var user = new JwtUser(jwt);
Name = $"{user.FirstName} {user.LastName}";
OnBoardUser = user.IsNew;

More Reading

For more information be sure to check out the Azure Active Directory support via the MSAL library: