Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static List<InMemoryUser> Get()
- {
- return new List<InMemoryUser>
- {
- new InMemoryUser
- {
- Username = "user@domain.com",
- Password = "password",
- Subject = "user@domain.com",
- Claims = new[]
- {
- new Claim(Constants.ClaimTypes.Id, "96cddc1de66641829237b7f09869b1c8"),
- new Claim(Constants.ClaimTypes.Name, "Some Full name example
- }
- },
- };
- }
- ((User as System.Security.Claims.ClaimsPrincipal).Identities.First() as System.Security.Claims.ClaimsIdentity).Claims.ToList()
- Count = 10
- [0]: {iss: https://localhost:44375}
- [1]: {aud: https://localhost:44375/resources}
- [2]: {exp: 1468920204}
- [3]: {nbf: 1468916604}
- [4]: {client_id: my_clientid}
- [5]: {scope: openid}
- [6]: {http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier: user@domain.com}
- [7]: {http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationinstant: 1468916604}
- [8]: {http://schemas.microsoft.com/identity/claims/identityprovider: idsrv}
- [9]: {http://schemas.microsoft.com/claims/authnmethodsreferences: password}
- {
- "iss": "https://localhost:44375",
- "aud": "https://localhost:44375/resources",
- "exp": 1468921471,
- "nbf": 1468917871,
- "client_id": "my_clientid,
- "scope": "openid",
- "sub": "user@domain.com",
- "auth_time": 1468917871,
- "idp": "idsrv",
- "amr": [
- "password"
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement