Skip to content

Commit

Permalink
Added OTP support for token request
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn-malmo committed Oct 22, 2024
1 parent 31d3be4 commit 8921f6b
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions VidiView.Api.DataModel/DataModel/TokenRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,23 @@ public class TokenRequest
/// </summary>
public TimeSpan? Lifetime { get; init; }

/// <summary>
/// Update the scope.
/// Note! You cannot extend the scope beyond what is already granted in the current session
/// </summary>
public string? Scope { get; set; }

/// <summary>
/// If token is intended for another application, specify
/// the application id here
/// </summary>
public Guid? AppId { get; set; }

/// <summary>
/// If set, the returned token will be of one-time-password type
/// </summary>
public bool OtpToken { get; set; } = false;

/// <summary>
/// Update the scope.
/// Note! You cannot extend the scope beyond what is already granted in the current session
/// </summary>
public string? Scope { get; set; }

/// <summary>
/// If supplied, this will add a contribute restriction with access to the specified studies only
/// </summary>
Expand Down

0 comments on commit 8921f6b

Please sign in to comment.