tgstation-server 6.19.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IUserAuthority.cs
Go to the documentation of this file.
1using System.Linq;
2using System.Threading;
3
8
10{
14 public interface IUserAuthority : IAuthority
15 {
21 RequirementsGated<AuthorityResponse<User>> Read(CancellationToken cancellationToken);
22
31 RequirementsGated<AuthorityResponse<User>> GetId(long id, bool includeJoins, bool allowSystemUser, CancellationToken cancellationToken);
32
39 RequirementsGated<AuthorityResponse<GraphQL.Types.OAuth.OAuthConnection[]>> OAuthConnections(long userId, CancellationToken cancellationToken);
40
47 RequirementsGated<AuthorityResponse<GraphQL.Types.OAuth.OidcConnection[]>> OidcConnections(long userId, CancellationToken cancellationToken);
48
55
64 UserCreateRequest createRequest,
65 bool? needZeroLengthPasswordWithOAuthConnections,
66 CancellationToken cancellationToken);
67
74 RequirementsGated<AuthorityResponse<UpdatedUser>> Update(UserUpdateRequest updateRequest, CancellationToken cancellationToken);
75 }
76}
Evaluates a set of IAuthorizationRequirements to be checked before executing a response.
Business logic for interating with the server.
Definition IAuthority.cs:9
RequirementsGated< AuthorityResponse< User > > Read(CancellationToken cancellationToken)
Gets the currently authenticated user.
RequirementsGated< AuthorityResponse< User > > GetId(long id, bool includeJoins, bool allowSystemUser, CancellationToken cancellationToken)
Gets the User with a given id .
RequirementsGated< AuthorityResponse< UpdatedUser > > Update(UserUpdateRequest updateRequest, CancellationToken cancellationToken)
Updates a User.
RequirementsGated< AuthorityResponse< GraphQL.Types.OAuth.OidcConnection[]> > OidcConnections(long userId, CancellationToken cancellationToken)
Gets the GraphQL.Types.OAuth.OidcConnections for the User with a given userId .
RequirementsGated< AuthorityResponse< GraphQL.Types.OAuth.OAuthConnection[]> > OAuthConnections(long userId, CancellationToken cancellationToken)
Gets the GraphQL.Types.OAuth.OAuthConnections for the User with a given userId .
RequirementsGated< IQueryable< User > > Queryable(bool includeJoins)
Gets all registered Users.
RequirementsGated< AuthorityResponse< UpdatedUser > > Create(UserCreateRequest createRequest, bool? needZeroLengthPasswordWithOAuthConnections, CancellationToken cancellationToken)
Creates a User.