-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #862 from DuendeSoftware/brock/otel-session-mgmt
minor reorg of session mgmt service/store/model names, add OTel support
- Loading branch information
Showing
14 changed files
with
133 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// Copyright (c) Duende Software. All rights reserved. | ||
// See LICENSE in the project root for license information. | ||
|
||
using Microsoft.AspNetCore.Authentication; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Duende.IdentityServer.Models; | ||
|
||
/// <summary> | ||
/// Results from querying user sessions from session management service. | ||
/// </summary> | ||
public class UserSession | ||
{ | ||
/// <summary> | ||
/// The subject ID | ||
/// </summary> | ||
public string SubjectId { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// The session ID | ||
/// </summary> | ||
public string SessionId { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// The display name for the user | ||
/// </summary> | ||
public string DisplayName { get; set; } | ||
|
||
/// <summary> | ||
/// The creation time | ||
/// </summary> | ||
public DateTime Created { get; set; } | ||
|
||
/// <summary> | ||
/// The renewal time | ||
/// </summary> | ||
public DateTime Renewed { get; set; } | ||
|
||
/// <summary> | ||
/// The expiration time | ||
/// </summary> | ||
public DateTime? Expires { get; set; } | ||
|
||
/// <summary> | ||
/// The issuer of the token service at login time. | ||
/// </summary> | ||
public string Issuer { get; set; } | ||
|
||
/// <summary> | ||
/// The client ids for the session | ||
/// </summary> | ||
public IReadOnlyCollection<string> ClientIds { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// The underlying AuthenticationTicket | ||
/// </summary> | ||
public AuthenticationTicket AuthenticationTicket { get; set; } = default!; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.