For @alexkar598#2712
- Instances will now allocate and pre-check the DreamDaemon and DMAPI validation ports can be used before they are created. Added error code 93 for when none are available. (#1136)
- You can no longer modify DreamDaemon or DMAPI validation ports so that they would conflict with other ports in use by TGS or the system. Added error code 94 for when a conflict occurs. (#1136)
- Added header X-Powered-By: tgstation-server to all responses. (#1134)
- Added DreamDaemon
additionalParameters
field for adding additional command line -params options. (#1145) - File transfers have been revamped. The
RawData
model has been replaced with theFileTicketResult
model. This contains one string field,fileTicket
. Transfers are now done as standardapplication/octet-stream
GET/PUT requests to the new/Transfer
endpoint. Requests should be made to/Transfer?ticket=<fileTicket>
after receiving aFileTicketResult
. Returns HTTP 200/204 on successful transfers, or standard 409/410ErrorMessage
s otherwise. Because of this change, the size limit for file transfers has been increased to 2GB. - Added ErrorCode 97 for when a job fails due to waiting on an expired upload request.
- POST
/Configuration
no longer updateslastReadHash
field of the returnedConfigurationFile
model. Access-Control-Max-Age
is now set to 24 hours.- Header names are now case-sensitive.
- Fixed being unable to clear repository access strings.
- Fixed GitHub API errors not being returned if a server update failed.
- GET
/
no longer requires authentication. - The
ServerInformation
model now contains theoAuthProviderInfos
field. This is a map of OAuth provider names to theirclientId
s -andredirectUri
s (OAuthProviderInfo model). - Added a new field to the
User
model,oAuthConnections
. This is a list ofOAuthConnection
models that indicateexternalUserId
s the user may use to authentication along with theprovider
ID of the OAuth provider. A user may have manyOAuthConnection
s with the sameprovider
but the sameprovider
/externalUserId
pair can not be added to multiple users. - Added Administration right 64 which allows users to edit their own
oAuthConnections
. This is a subset of right 1. - Added OAuth authentication. POST
/
with headersAuthorization: OAuth <Authorization response code from https://tools.ietf.org/html/rfc6749#section-4.1.2>
andOAuthProvider: <Provider Name>
to receive a bearer token with extended duration. - Added error code 95 for when one attempts to create
OAuthConnection
s on theAdmin
account as this is not allowed. - Added error code 96 for when a login attempt is made with a disabled OAuth provider.