@@ -112,6 +112,47 @@ paths:
112112 security :
113113 - authCookie : []
114114 parameters : []
115+ /auth/twofactorauth/totp/pending :
116+ post :
117+ summary : Enable time-based 2FA codes
118+ operationId : enable2FA
119+ x-codeSamples :
120+ $ref : " ../codeSamples/authentication.yaml#/~1auth~1twofactorauth~1totp~1pending/post"
121+ responses :
122+ ' 200 ' :
123+ $ref : ../responses/authentication/Pending2FAResponse.yaml
124+ ' 401 ' :
125+ $ref : ../responses/MissingCredentialsError.yaml
126+ description : Begins the sequence for enabling time-based 2FA.
127+ tags :
128+ - authentication
129+ security :
130+ - authCookie : []
131+ parameters : []
132+ /auth/twofactorauth/totp/pending/verify :
133+ post :
134+ summary : Verify Pending 2FA code
135+ operationId : verifyPending2FA
136+ x-codeSamples :
137+ $ref : " ../codeSamples/authentication.yaml#/~1auth~1twofactorauth~1totp~1pending~1verify/post"
138+ responses :
139+ ' 200 ' :
140+ $ref : ../responses/authentication/Verify2FAResponse.yaml
141+ ' 401 ' :
142+ $ref : ../responses/MissingCredentialsError.yaml
143+ requestBody :
144+ required : true
145+ content :
146+ application/json :
147+ schema :
148+ $ref : ../requests/TwoFactorAuthCode.yaml
149+ examples : {}
150+ description : Finishes sequence for enabling time-based 2FA.
151+ tags :
152+ - authentication
153+ security :
154+ - authCookie : []
155+ parameters : []
115156 /auth/user/twofactorauth/otp :
116157 get :
117158 summary : Get 2FA Recovery codes
@@ -175,6 +216,22 @@ paths:
175216 security :
176217 - authCookie : [ ]
177218 parameters : [ ]
219+ ' /auth/twofactorauth ' :
220+ delete :
221+ summary : Disable 2FA
222+ operationId : disable2FA
223+ x-codeSamples :
224+ $ref : " ../codeSamples/authentication.yaml#/~1auth~1twofactorauth/delete"
225+ responses :
226+ ' 200 ' :
227+ $ref : ../responses/authentication/Disable2FAResponse.yaml
228+ ' 401 ' :
229+ $ref : ../responses/MissingCredentialsError.yaml
230+ tags :
231+ - authentication
232+ description : Disables 2FA for the currently logged in account
233+ security :
234+ - authCookie : []
178235 ' /users/{userId}/delete ' :
179236 parameters :
180237 - $ref : ../parameters.yaml#/userId
@@ -198,6 +255,76 @@ paths:
198255 **METHOD NOTE:** Despite this being a Delete action, the method type required is PUT.
199256 security :
200257 - authCookie : []
258+ /auth/register :
259+ post :
260+ summary : Register User Account
261+ description : Verify whether the currently provided Auth Token is valid.
262+ requestBody :
263+ required : true
264+ content :
265+ application/json :
266+ schema :
267+ $ref : ../requests/RegisterUserAccountRequest.yaml
268+ responses :
269+ ' 200 ' :
270+ $ref : ../responses/authentication/CurrentUserLoginResponse.yaml
271+ ' 401 ' :
272+ $ref : ../responses/MissingCredentialsError.yaml
273+ operationId : registerUserAccount
274+ parameters : []
275+ tags :
276+ - authentication
277+ /auth/resendEmail :
278+ post :
279+ summary : Resend Email Confirmation
280+ description : Verify whether the currently provided Auth Token is valid.
281+ requestBody :
282+ required : true
283+ content :
284+ application/json :
285+ schema :
286+ $ref : ../requests/ResendEmailConfirmationRequest.yaml
287+ responses :
288+ ' 200 ' :
289+ $ref : ../responses/authentication/ResendVerificationEmailSuccess.yaml
290+ ' 401 ' :
291+ $ref : ../responses/MissingCredentialsError.yaml
292+ operationId : resendEmailConfirmation
293+ parameters : []
294+ tags :
295+ - authentication
296+ security :
297+ - authCookie : []
298+ ' /auth/confirmEmail ' :
299+ get :
300+ summary : Confirm Email
301+ operationId : confirmEmail
302+ parameters :
303+ - $ref : ../parameters.yaml#/confirmEmailUserId
304+ - $ref : ../parameters.yaml#/confirmEmailToken
305+ x-codeSamples :
306+ $ref : " ../codeSamples/authentication.yaml#/~1auth~1confirmEmail/get"
307+ responses :
308+ ' 302 ' :
309+ $ref : ../responses/authentication/ConfirmEmailResponse.yaml
310+ tags :
311+ - authentication
312+ description : Confirms the email address for a user
313+ ' /auth/verifyLoginPlace ' :
314+ get :
315+ summary : Verify Login Place
316+ operationId : verifyLoginPlace
317+ parameters :
318+ - $ref : ../parameters.yaml#/userIdQuery
319+ - $ref : ../parameters.yaml#/verifyLoginPlaceToken
320+ x-codeSamples :
321+ $ref : " ../codeSamples/authentication.yaml#/~1auth~1verifyLoginPlace/get"
322+ responses :
323+ ' 302 ' :
324+ $ref : ../responses/authentication/ConfirmLoginResponse.yaml
325+ tags :
326+ - authentication
327+ description : Verifies a login attempt for a user
201328tags :
202329 $ref : ../tags.yaml
203330components :
0 commit comments