| 123456789101112131415161718192021222324252627282930313233343536373839 |
- //using IdentityProvider.Protos.AuthService;
- using GrpcShared;
- using GrpcShared.DTO.Auth;
- using GrpcShared.Interfaces;
- using Microsoft.Extensions.Options;
-
- namespace IdentityProvider.Services
- {
- public class AuthService : IAuthService
- {
- private readonly ILogger<AuthService> _logger;
- private readonly AuthParams _params;
- public AuthService(ILogger<AuthService> logger, IOptions<AuthParams> options )
- {
- _logger = logger;
- _params = options.Value;
- }
-
-
- public Task<AuthResponse> GetAccessToken(CodeResponse code)
- {
- throw new NotImplementedException();
- }
-
- public Task<CodeResponse> GetCode(AuthRequest request)
- {
- throw new NotImplementedException();
- }
-
- public async Task<AuthParams> GetAuthParams()
- {
- var authParams = new AuthParams {
- ClientId = _params.ClientId,
- RedirectURI = _params.RedirectURI,
- Scope =_params.Scope };
- return await Task.FromResult(authParams);
- }
- }
- }
|