Skip to content

Commit

Permalink
Improve authenticators.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Thisara-Welmilla committed Dec 12, 2024
1 parent b834703 commit 3569c1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public class AuthenticatorsApi {
@ApiResponse(code = 400, message = "Bad Request", response = Error.class),
@ApiResponse(code = 401, message = "Unauthorized", response = Void.class),
@ApiResponse(code = 403, message = "Forbidden", response = Void.class),
@ApiResponse(code = 409, message = "Conflict", response = Error.class),
@ApiResponse(code = 500, message = "Server Error", response = Error.class)
})
public Response addUserDefinedLocalAuthenticator(@ApiParam(value = "This represents the user defined local authenticator to be created." ,required=true) @Valid UserDefinedLocalAuthenticatorCreation userDefinedLocalAuthenticatorCreation) {
Expand Down Expand Up @@ -133,7 +132,6 @@ public Response authenticatorsMetaTagsGet() {
@ApiResponse(code = 400, message = "Bad Request", response = Error.class),
@ApiResponse(code = 401, message = "Unauthorized", response = Void.class),
@ApiResponse(code = 403, message = "Forbidden", response = Void.class),
@ApiResponse(code = 409, message = "Conflict", response = Error.class),
@ApiResponse(code = 500, message = "Server Error", response = Error.class)
})
public Response deleteUserDefinedLocalAuthenticator(@ApiParam(value = "ID of an authenticator",required=true) @PathParam("authenticator-id") String authenticatorId) {
Expand Down Expand Up @@ -181,7 +179,6 @@ public Response getConnectedAppsOfLocalAuthenticator(@ApiParam(value = "ID of an
@ApiResponse(code = 400, message = "Bad Request", response = Error.class),
@ApiResponse(code = 401, message = "Unauthorized", response = Void.class),
@ApiResponse(code = 403, message = "Forbidden", response = Void.class),
@ApiResponse(code = 409, message = "Conflict", response = Error.class),
@ApiResponse(code = 500, message = "Server Error", response = Error.class)
})
public Response updateUserDefinedLocalAuthenticator(@ApiParam(value = "ID of an authenticator",required=true) @PathParam("authenticator-id") String authenticatorId, @ApiParam(value = "This represents the user defined local authenticator to be created." ,required=true) @Valid UserDefinedLocalAuthenticatorUpdate userDefinedLocalAuthenticatorUpdate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ components:
id:
type: string
example: QmFzaWNBdXRoZW50aWNhdG9y
readOnly: true
name:
type: string
example: BasicAuthenticator
Expand All @@ -337,11 +338,13 @@ components:
enum:
- SYSTEM
- USER
readOnly: true
type:
type: string
enum:
- LOCAL
- FEDERATED
readOnly: true
image:
type: string
example: basic-authenticator-logo-url
Expand All @@ -353,6 +356,7 @@ components:
items:
type: string
example: [2FA, MFA]
readOnly: true
self:
type: string
example: /t/carbon.super/api/server/v1/configs/authenticators/eDUwOUNlcnRpZmljYXRlQXV0aGVudGljYXRvcg
Expand Down

0 comments on commit 3569c1b

Please sign in to comment.