-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
github-actions
committed
Apr 17, 2021
1 parent
daf03c5
commit b1b1906
Showing
34 changed files
with
826 additions
and
126 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"sdk": { | ||
"version": "5.0.200" | ||
"version": "5.0.202" | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -10,6 +10,7 @@ public enum DbTypes | |
MySql, | ||
Oracle, | ||
PostgreSQL, | ||
RavenDb | ||
RavenDb, | ||
MongoDb | ||
} | ||
} |
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
25 changes: 25 additions & 0 deletions
25
src/IdentityServer/Aguacongas.IdentityServer.KeysRotation/MongoDb/DataProtectionKey.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,25 @@ | ||
// Project: Aguafrommars/TheIdServer | ||
// Copyright (c) 2021 @Olivier Lefebvre | ||
namespace Aguacongas.IdentityServer.KeysRotation.MongoDb | ||
{ | ||
/// <summary> | ||
/// Code first model used by <see cref="EntityFrameworkCoreXmlRepository{TContext}"/>. | ||
/// </summary> | ||
public class DataProtectionKey : IXmlKey | ||
{ | ||
/// <summary> | ||
/// The entity identifier of the <see cref="KeyRotationKey"/>. | ||
/// </summary> | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// The friendly name of the <see cref="KeyRotationKey"/>. | ||
/// </summary> | ||
public string FriendlyName { get; set; } | ||
|
||
/// <summary> | ||
/// The XML representation of the <see cref="KeyRotationKey"/>. | ||
/// </summary> | ||
public string Xml { get; set; } | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/IdentityServer/Aguacongas.IdentityServer.KeysRotation/MongoDb/IXmlKey.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,12 @@ | ||
// Project: Aguafrommars/TheIdServer | ||
// Copyright (c) 2021 @Olivier Lefebvre | ||
namespace Aguacongas.IdentityServer.KeysRotation.MongoDb | ||
{ | ||
public interface IXmlKey | ||
{ | ||
string Id { get; set; } | ||
|
||
string Xml { get; set; } | ||
string FriendlyName { get; set; } | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/IdentityServer/Aguacongas.IdentityServer.KeysRotation/MongoDb/KeyRotationKey.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,22 @@ | ||
// Project: Aguafrommars/TheIdServer | ||
// Copyright (c) 2021 @Olivier Lefebvre | ||
namespace Aguacongas.IdentityServer.KeysRotation.MongoDb | ||
{ | ||
public class KeyRotationKey : IXmlKey | ||
{ | ||
/// <summary> | ||
/// The entity identifier of the <see cref="KeyRotationKey"/>. | ||
/// </summary> | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// The friendly name of the <see cref="KeyRotationKey"/>. | ||
/// </summary> | ||
public string FriendlyName { get; set; } | ||
|
||
/// <summary> | ||
/// The XML representation of the <see cref="KeyRotationKey"/>. | ||
/// </summary> | ||
public string Xml { get; set; } | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/IdentityServer/Aguacongas.IdentityServer.KeysRotation/MongoDb/MongoDatabaseWrapper.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,18 @@ | ||
// Project: Aguafrommars/TheIdServer | ||
// Copyright (c) 2021 @Olivier Lefebvre | ||
using System; | ||
using MongoDB.Driver; | ||
|
||
namespace Aguacongas.IdentityServer.KeysRotation.MongoDb | ||
{ | ||
public class MongoCollectionWrapper<TKey> | ||
where TKey : IXmlKey | ||
{ | ||
public IMongoCollection<TKey> Collection { get; } | ||
|
||
public MongoCollectionWrapper(IMongoCollection<TKey> collection) | ||
{ | ||
Collection = collection ?? throw new ArgumentNullException(nameof(collection)); | ||
} | ||
} | ||
} |
Oops, something went wrong.