mirror of
https://github.com/bitwarden/server.git
synced 2025-07-16 07:07:32 -05:00
64 lines
1.8 KiB
C#
64 lines
1.8 KiB
C#
// FIXME: Update this file to be null safe and then delete the line below
|
|
#nullable disable
|
|
|
|
using Bit.Core.Entities;
|
|
using Microsoft.AspNetCore.Identity;
|
|
|
|
namespace Bit.Core.Auth.Identity;
|
|
|
|
public class RoleStore : IRoleStore<Role>
|
|
{
|
|
public void Dispose() { }
|
|
|
|
public Task<IdentityResult> CreateAsync(Role role, CancellationToken cancellationToken)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task<IdentityResult> DeleteAsync(Role role, CancellationToken cancellationToken)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task<Role> FindByIdAsync(string roleId, CancellationToken cancellationToken)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task<Role> FindByNameAsync(string normalizedRoleName, CancellationToken cancellationToken)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task<string> GetNormalizedRoleNameAsync(Role role, CancellationToken cancellationToken)
|
|
{
|
|
return Task.FromResult(role.Name);
|
|
}
|
|
|
|
public Task<string> GetRoleIdAsync(Role role, CancellationToken cancellationToken)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task<string> GetRoleNameAsync(Role role, CancellationToken cancellationToken)
|
|
{
|
|
return Task.FromResult(role.Name);
|
|
}
|
|
|
|
public Task SetNormalizedRoleNameAsync(Role role, string normalizedName, CancellationToken cancellationToken)
|
|
{
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task SetRoleNameAsync(Role role, string roleName, CancellationToken cancellationToken)
|
|
{
|
|
role.Name = roleName;
|
|
return Task.FromResult(0);
|
|
}
|
|
|
|
public Task<IdentityResult> UpdateAsync(Role role, CancellationToken cancellationToken)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|