forked from Aguafrommars/TheIdServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: update api sample * docs: remove useless service implementation * doc: update multitier sample --------- Co-authored-by: github-actions <[email protected]>
- Loading branch information
1 parent
00f2a8e
commit ccfb5d1
Showing
12 changed files
with
125 additions
and
18 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
10 changes: 10 additions & 0 deletions
10
sample/MultiTiers/Aguacongas.TheIdServer.Api/ClientConfigurationValidator.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,10 @@ | ||
using Duende.IdentityServer.Validation; | ||
using System.Threading.Tasks; | ||
|
||
namespace Aguacongas.TheIdServer.Api; | ||
|
||
public class EmptyClientConfigurationValidator : IClientConfigurationValidator | ||
{ | ||
public Task ValidateAsync(ClientConfigurationValidationContext context) | ||
=> Task.CompletedTask; | ||
} |
14 changes: 14 additions & 0 deletions
14
sample/MultiTiers/Aguacongas.TheIdServer.Api/CreatePersonalAccessTokenServvice.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,14 @@ | ||
using Aguacongas.IdentityServer.Abstractions; | ||
using Microsoft.AspNetCore.Http; | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
|
||
namespace Aguacongas.TheIdServer.Api; | ||
|
||
public class CreatePersonalAccessTokenServvice : ICreatePersonalAccessToken | ||
{ | ||
public Task<string> CreatePersonalAccessTokenAsync(HttpContext context, bool isRefenceToken, int lifetimeDays, IEnumerable<string> apis, IEnumerable<string> scopes, IEnumerable<string> claimTypes) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
sample/MultiTiers/Aguacongas.TheIdServer.Api/EventService.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,14 @@ | ||
using Duende.IdentityServer.Events; | ||
using Duende.IdentityServer.Services; | ||
using System.Threading.Tasks; | ||
|
||
namespace Aguacongas.TheIdServer.Api; | ||
|
||
public class EmptyEventService : IEventService | ||
{ | ||
public bool CanRaiseEventType(EventTypes evtType) | ||
=> true; | ||
|
||
public Task RaiseAsync(Event evt) | ||
=> Task.CompletedTask; | ||
} |
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
14 changes: 14 additions & 0 deletions
14
sample/MultiTiers/Aguacongas.TheIdServer.Api/SchemeChangeSubscriber.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,14 @@ | ||
using Aguacongas.IdentityServer.Abstractions; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace Aguacongas.TheIdServer.Api; | ||
|
||
public class SchemeChangeSubscriber : ISchemeChangeSubscriber | ||
{ | ||
public Task SubscribeAsync(CancellationToken cancellationToken) | ||
=> Task.CompletedTask; | ||
|
||
public Task UnSubscribeAsync(CancellationToken cancellationToken) | ||
=> Task.CompletedTask; | ||
} |
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