Hi Michele,
I am new to CAS, couldn't able to save device token detals in database 
MySQL after successful credential validatiion,
with cas 7,2 

 implementation "org.apereo.cas:cas-server-support-gauth-jpa"
 implementation "org.apereo.cas:cas-server-support-gauth"

I
On Wednesday, September 22, 2021 at 1:16:29 PM UTC+5:30 Michele Andreoli 
wrote:

> 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?
>
>

-- 
- Website: https://apereo.github.io/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/e68dc499-550b-4ed4-8eb5-bfd7ef8f93abn%40apereo.org.

Reply via email to