Class TrustedDeviceController

java.lang.Object
com.irurueta.authserver.authorization.api.web.mfa.TrustedDeviceController
All Implemented Interfaces:
TrustedDevicesApi

@RestController public class TrustedDeviceController extends Object implements TrustedDevicesApi
Lists and revokes the trusted devices of the authenticated account. The paths, status codes and bodies are those of the contract apis/auth-server/rest-server/auth-server-api-v1.yaml, through the generated TrustedDevicesApi; failures are answered by MfaExceptionHandler. Revoking a device needs a recent multi-factor sign-in (StepUpGuard).
  • Field Details

    • currentAccountResolver

      private final CurrentAccountResolver currentAccountResolver
      Resolves the account of the request.
    • listTrustedDevicesUseCase

      private final ListTrustedDevicesUseCase listTrustedDevicesUseCase
      Lists the devices of an account.
    • revokeTrustedDeviceUseCase

      private final RevokeTrustedDeviceUseCase revokeTrustedDeviceUseCase
      Revokes a device.
    • stepUpGuard

      private final StepUpGuard stepUpGuard
      Requires a recent multi-factor sign-in before a device is revoked.
    • trustedDeviceDtoMapper

      private final TrustedDeviceDtoMapper trustedDeviceDtoMapper
      Maps the devices onto the contract's DTOs.
  • Constructor Details

    • TrustedDeviceController

      public TrustedDeviceController()
  • Method Details