-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
128 additions
and
14 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
13 changes: 13 additions & 0 deletions
13
src/Microsoft.IdentityModel.Protocols/Configuration/DistributedConfigurationOptions.cs
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,13 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Microsoft.IdentityModel.Protocols.Configuration | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
// L2 TODO: internal until L2 cache is implemented S2S. | ||
internal class DistributedConfigurationOptions | ||
{ | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
src/Microsoft.IdentityModel.Protocols/Configuration/IDistributedConfigurationManager.cs
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,34 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace Microsoft.IdentityModel.Protocols.Configuration | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
// L2 TODO: internal until L2 cache is implemented S2S. | ||
internal interface IDistributedConfigurationManager<T> where T : class | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <param name="metadataAddress"></param> | ||
/// <param name="distributedConfigurationOptions"></param> | ||
/// <param name="cancellationToken"></param> | ||
/// <returns></returns> | ||
Task<T> GetConfigurationAsync(string metadataAddress, DistributedConfigurationOptions distributedConfigurationOptions, CancellationToken cancellationToken = default); | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <param name="metadataAddress"></param> | ||
/// <param name="configuration"></param> | ||
/// <param name="distributedConfigurationOptions"></param> | ||
/// <param name="cancellationToken"></param> | ||
/// <returns></returns> | ||
Task SetConfigurationAsync(string metadataAddress, T configuration, DistributedConfigurationOptions distributedConfigurationOptions, CancellationToken cancellationToken = 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
17 changes: 17 additions & 0 deletions
17
src/Microsoft.IdentityModel.Tokens/IConfigurationRetrievalTime.cs
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,17 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
|
||
namespace Microsoft.IdentityModel.Tokens | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
// L2 TODO: internal until L2 cache is implemented S2S. | ||
internal interface IConfigurationRetrievalTime | ||
{ | ||
// L2 TODO: internal until L2 cache is implemented S2S. | ||
internal DateTimeOffset RetrievalTime { get; set; } | ||
} | ||
} |