Skip to content

Commit c587291

Browse files
authored
Merge pull request #184847 from simonaco/patch-7
add claims
2 parents 71cf0ac + efffcf0 commit c587291

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

articles/static-web-apps/user-information.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Client principal data object exposes user-identifiable information to your app.
2626
| `userId` | An Azure Static Web Apps-specific unique identifier for the user. <ul><li>The value is unique on a per-app basis. For instance, the same user returns a different `userId` value on a different Static Web Apps resource.<li>The value persists for the lifetime of a user. If you delete and add the same user back to the app, a new `userId` is generated.</ul> |
2727
| `userDetails` | Username or email address of the user. Some providers return the [user's email address](authentication-authorization.md), while others send the [user handle](authentication-authorization.md). |
2828
| `userRoles` | An array of the [user's assigned roles](authentication-authorization.md). |
29+
| `claims` | An array of claims returned by your [custom authentication provider](authentication-custom.md). |
2930

3031
The following example is a sample client principal object:
3132

@@ -34,7 +35,11 @@ The following example is a sample client principal object:
3435
"identityProvider": "github",
3536
"userId": "d75b260a64504067bfc5b2905e3b8182",
3637
"userDetails": "username",
37-
"userRoles": ["anonymous", "authenticated"]
38+
"userRoles": ["anonymous", "authenticated"],
39+
"claims": [{
40+
"typ": "name",
41+
"val": "Azure Static Web Apps"
42+
}]
3843
}
3944
```
4045

0 commit comments

Comments
 (0)