@Controller @RequestMapping(value="/2fa") public class TwoFactorAuthenticationController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_2FA_AUTHENTICATOR_URI |
static String |
ATTRIBUTE_2FA_RECOVER_MODE |
static String |
ATTRIBUTE_2FA_SECRET_KEY |
static String |
TWO_FACTOR_ACTIVATION_URI |
static String |
TWO_FACTOR_CONFIGURED_URI |
static String |
URI |
| Constructor and Description |
|---|
TwoFactorAuthenticationController(TwoFactorAuthenticationProvider authenticationProvider,
TwoFactorAuthenticationService twoFactorAuthenticationService,
RecoveryAuthenticationProvider recoveryAuthenticationProvider,
OtpService otpService) |
| Modifier and Type | Method and Description |
|---|---|
String |
activation(org.springframework.ui.Model model) |
String |
authenticate(org.springframework.ui.Model model,
String verificationCode,
String secretKey) |
String |
configured(org.springframework.ui.Model model) |
String |
recoverAccount(org.springframework.ui.Model model,
String recoveryCode) |
String |
validate(org.springframework.ui.Model model,
String verificationCode) |
public static final String URI
public static final String TWO_FACTOR_CONFIGURED_URI
public static final String TWO_FACTOR_ACTIVATION_URI
public static final String ATTRIBUTE_2FA_RECOVER_MODE
public static final String ATTRIBUTE_2FA_SECRET_KEY
public static final String ATTRIBUTE_2FA_AUTHENTICATOR_URI
public TwoFactorAuthenticationController(TwoFactorAuthenticationProvider authenticationProvider, TwoFactorAuthenticationService twoFactorAuthenticationService, RecoveryAuthenticationProvider recoveryAuthenticationProvider, OtpService otpService)
@GetMapping(value="/authenticate") public String configured(org.springframework.ui.Model model)
@PostMapping(value="/validate") public String validate(org.springframework.ui.Model model, @RequestParam String verificationCode)
@GetMapping(value="/activation") public String activation(org.springframework.ui.Model model)
@PostMapping(value="/activation/authenticate") public String authenticate(org.springframework.ui.Model model, @RequestParam String verificationCode, @RequestParam String secretKey)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.