Still working on getting client credential flow complete, most of the request works but still working on generating the JWT.
This commit is contained in:
parent
1a8c63808a
commit
8782ef39c6
80 changed files with 1331 additions and 414 deletions
30
IdentityShroud.Core/Services/OpenId/TokenService.cs
Normal file
30
IdentityShroud.Core/Services/OpenId/TokenService.cs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
namespace IdentityShroud.Core.Services.OpenId;
|
||||
|
||||
public interface ITokenService
|
||||
{
|
||||
Task<Result<TokenResponse>> Handle(
|
||||
Dictionary<string, string> form,
|
||||
string? basicAuthUser,
|
||||
string? basicAuthPassword,
|
||||
CancellationToken ct = default);
|
||||
}
|
||||
|
||||
public class TokenService : ITokenService
|
||||
{
|
||||
public async Task<Result<TokenResponse>> Handle(
|
||||
Dictionary<string, string> form,
|
||||
string? basicAuthUser,
|
||||
string? basicAuthPassword,
|
||||
CancellationToken ct = default)
|
||||
{
|
||||
return new();
|
||||
}
|
||||
|
||||
public async Task<Result<TokenResponse>> ClientCredentialsFlow(
|
||||
string clientId,
|
||||
string clientSecret,
|
||||
CancellationToken ct = default)
|
||||
{
|
||||
return new();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue