Hi,
I'm trying to configure the multifactor authentication with Google Authenticator provider on CAS 6.4.0.
If I start CAS everthing goes well and I'm able to register my device with the generated qrcode and login.
If I reboot CAS, when it ask me for token for login, the token generated by my registered device is not valid. So, I need to delete qrcode data (gauthCredentialRepository inside mongodb for example) and regenerate a new qrcode.
I see thaht calling the actuator endpoint after the first login:
GET /cas/actuator/gauthCredentialRepository
The response was:
[
{
"@class": "org.apereo.cas.gauth.credential.GoogleAuthenticatorAccount",
"scratchCodes": [
71727014,
10026393,
53569943,
99181679,
11527675
],
"id": 1632236034928,
"secretKey": "PGCKVHVFTQNCYRK4GJASSALFYTJM5ZIC",
"validationCode": 194284,
"username": "fd",
"name": "charming_penicillin",
"registrationDate": "2021-09-21T16:53:54.928+02:00"
}
]
After rebooting CAS if I call the same actuator endpoint, I see that secret key is missing:
[
{
"@class": "org.apereo.cas.gauth.credential.GoogleAuthenticatorAccount",
"scratchCodes": [
71727014,
10026393,
53569943,
99181679,
11527675
],
"id": 1632236034928,
"validationCode": 194284,
"username": "fd",
"name": "charming_penicillin",
"registrationDate": "2021-09-21T16:53:54.928+02:00"
}
]
Is there a way to fix this issue?