Hi David,

I replaced redis with influxdb for the events, but the problem remains the
same.
I note that information is missing in the event data: no geolocation,
browser user agent or result.

[image: Capture d’écran du 2023-02-27 09-47-41.png]

 I have reviewed all the documentation about this and I believe I have set
all the required options. If you have other leads, I'm all the same taker.

Regards.

Le dim. 19 févr. 2023 à 10:18, wouldsmina <[email protected]> a écrit :

>
> I thought some settings were only needed if I had a redis
> cluster. However, I have events that are stored in redis.
> I will try to use influxdb storage (more simple).
> Thank you.
>
>
>
> Le dim. 19 févr. 2023 à 05:52, David Malia <[email protected]> a écrit :
>
>> Weird, when I looked at it yesterday, I didn't see redis, though I see it
>> now.
>> You might try setting all 12 of the required parameters.  7 of them don't
>> have default values.
>>
>>
>> On Fri, Feb 17, 2023 at 11:44 PM wouldsmina <[email protected]> wrote:
>>
>>> I set "implementation "org.apereo.cas:cas-server-support-events-redis""
>>> and :
>>> cas.events.redis.host=localhost
>>> cas.events.redis.enabled=true
>>> cas.events.redis.database=0
>>>
>>> did i forget another option ?
>>>
>>> Le ven. 17 févr. 2023 à 21:59, David Malia <[email protected]> a écrit :
>>>
>>>>
>>>> https://apereo.github.io/cas/6.5.x/authentication/Configuring-Authentication-Events.html
>>>>
>>>> I don't see a 'redis' option for storing the CAS Events.  You might try
>>>> a storage mechanism listed there.
>>>>
>>>> Thanks,
>>>> David Malia
>>>>
>>>> On Tue, Feb 14, 2023 at 11:19 PM wouldsmina <[email protected]>
>>>> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> In addition, here is the documentation I used:
>>>>> https://apereo.github.io/cas/6.5.x/authentication/Configuring-RiskBased-Authentication.html
>>>>>
>>>>> Is there more complete documentation?
>>>>>
>>>>> Sorry if my request is unclear, I'm not very good at English.
>>>>>
>>>>> Le mar. 14 févr. 2023 à 06:20, wouldsmina <[email protected]> a
>>>>> écrit :
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> I'm trying to set up Risk-based Authentication (on CAS 6.5.9), but I
>>>>>> can't figure out if it works or not (but I don't seem to). Following
>>>>>> the documentation, I configure these modules in gradle :
>>>>>>
>>>>>>           implementation
>>>>>> "org.apereo.cas:cas-server-support-electrofence"
>>>>>>           implementation
>>>>>> "org.apereo.cas:cas-server-support-trusted-mfa-redis"
>>>>>>           implementation
>>>>>> "org.apereo.cas:cas-server-support-events-redis"
>>>>>>           implementation
>>>>>> "org.apereo.cas:cas-server-support-geolocation"
>>>>>>           implementation
>>>>>> "org.apereo.cas:cas-server-support-geolocation-maxmind"
>>>>>>           implementation "org.apereo.cas:cas-server-core-events"
>>>>>>
>>>>>> And in case.properties :
>>>>>> cas.maxmind.country-database=/usr/share/GeoIP/GeoIP.dat
>>>>>>
>>>>>> cas.authn.adaptive.policy.require-timed-multifactor[0].provider-id=mfa-yubikey
>>>>>> cas.authn.mfa.trusted.crypto.encryption.key=...
>>>>>> cas.authn.mfa.trusted.crypto.signing.key=...
>>>>>>
>>>>>> cas.authn.mfa.trusted.device-fingerprint.cookie.crypto.encryption.key=...
>>>>>> cas.authn.mfa.trusted.device-fingerprint.cookie.crypto.signing.key=...
>>>>>> cas.authn.mfa.trusted.redis.host=localhost
>>>>>> cas.authn.mfa.trusted.redis.port=6379
>>>>>> cas.authn.mfa.trusted.redis.database=0
>>>>>> cas.authn.mfa.trusted.redis.enabled=true
>>>>>> cas.events.redis.host=localhost
>>>>>> cas.events.redis.enabled=true
>>>>>> cas.events.redis.database=0
>>>>>>
>>>>>> I connected from different IP and browser, without result. I also
>>>>>> tried to force the mfa at certain times:
>>>>>>
>>>>>> cas.authn.adaptive.policy.require-timed-multifactor[0].on-or-after-hour=20
>>>>>>
>>>>>> cas.authn.adaptive.policy.require-timed-multifactor[0].on-or-before-hour=7
>>>>>>
>>>>>> always the same.
>>>>>>
>>>>>> Logs :
>>>>>> [2023-02-13 22:08:00] [info]
>>>>>> =============================================================
>>>>>> [2023-02-13 22:08:00] [info] WHO: audit:unknown
>>>>>> [2023-02-13 22:08:00] [info] WHAT:
>>>>>> {source=RankedMultifactorAuthenticationProviderWebflowEventResolver,
>>>>>> event=success, timestamp=Mon Feb 13 22:08:00 CET 2023}
>>>>>> [2023-02-13 22:08:00] [info] ACTION: AUTHENTICATION_EVENT_TRIGGERED
>>>>>> [2023-02-13 22:08:00] [info] APPLICATION: CAS
>>>>>> [2023-02-13 22:08:00] [info] WHEN: Mon Feb 13 22:08:00 CET 2023
>>>>>> [2023-02-13 22:08:00] [info] CLIENT IP ADDRESS: ....
>>>>>> [2023-02-13 22:08:00] [info] SERVER IP ADDRESS: ....
>>>>>> [2023-02-13 22:08:00] [info]
>>>>>> =============================================================
>>>>>> ...
>>>>>> [2023-02-13 22:08:05] [info] #033[32m2023-02-13 22:08:05,636 INFO
>>>>>> [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - 
>>>>>> <Audit
>>>>>> trail record BEGIN
>>>>>> [2023-02-13 22:08:05] [info]
>>>>>> =============================================================
>>>>>> [2023-02-13 22:08:05] [info] WHO: usertest
>>>>>> [2023-02-13 22:08:05] [info] WHAT:
>>>>>> [RememberMeUsernamePasswordCredential(super=UsernamePasswordCredential(username=usertest,
>>>>>> source=null, customFields={}), rememberMe=false)]
>>>>>> [2023-02-13 22:08:05] [info] ACTION: AUTHENTICATION_SUCCESS
>>>>>> [2023-02-13 22:08:05] [info] APPLICATION: CAS
>>>>>> [2023-02-13 22:08:05] [info] WHEN: Mon Feb 13 22:08:05 CET 2023
>>>>>> [2023-02-13 22:08:05] [info] CLIENT IP ADDRESS: ....
>>>>>> [2023-02-13 22:08:05] [info] SERVER IP ADDRESS: ....
>>>>>> [2023-02-13 22:08:05] [info]
>>>>>> =============================================================
>>>>>> [2023-02-13 22:08:05] [info] >#033[m
>>>>>> [2023-02-13 22:08:05] [info] #033[32m2023-02-13 22:08:05,712 INFO
>>>>>> [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - 
>>>>>> <Audit
>>>>>> trail record BEGIN
>>>>>> [2023-02-13 22:08:05] [info]
>>>>>> =============================================================
>>>>>> [2023-02-13 22:08:05] [info] WHO: usertest
>>>>>> [2023-02-13 22:08:05] [info] WHAT: TGT-1-*****VbkzpcWGqI-cas
>>>>>> [2023-02-13 22:08:05] [info] ACTION: TICKET_GRANTING_TICKET_CREATED
>>>>>> [2023-02-13 22:08:05] [info] APPLICATION: CAS
>>>>>> [2023-02-13 22:08:05] [info] WHEN: Mon Feb 13 22:08:05 CET 2023
>>>>>> [2023-02-13 22:08:05] [info] CLIENT IP ADDRESS: ....
>>>>>> [2023-02-13 22:08:05] [info] SERVER IP ADDRESS: ....
>>>>>> [2023-02-13 22:08:05] [info]
>>>>>> =============================================================
>>>>>>
>>>>>> Can someone tell me if I forgot something?
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> --
>>>>>> - Website: https://apereo.github.io/cas
>>>>>> - Gitter Chatroom: https://gitter.im/apereo/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 on the web visit
>>>>>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/80949868-dd80-4213-a0bb-9c9cebd02bc5n%40apereo.org
>>>>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/80949868-dd80-4213-a0bb-9c9cebd02bc5n%40apereo.org?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>>> - Website: https://apereo.github.io/cas
>>>>> - Gitter Chatroom: https://gitter.im/apereo/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 on the web visit
>>>>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAH2NqNaG57CPqbjCTu_hyV%2BkWDTQwZuNe0L4y4esHYg5%2BVHHQQ%40mail.gmail.com
>>>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAH2NqNaG57CPqbjCTu_hyV%2BkWDTQwZuNe0L4y4esHYg5%2BVHHQQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> - Website: https://apereo.github.io/cas
>>>> - Gitter Chatroom: https://gitter.im/apereo/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 on the web visit
>>>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAL3JkE%2BYS42qpx3GKtQ-Q1JeE06hEqF_1_zWvW%2BV04shRTmRVQ%40mail.gmail.com
>>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAL3JkE%2BYS42qpx3GKtQ-Q1JeE06hEqF_1_zWvW%2BV04shRTmRVQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> - Website: https://apereo.github.io/cas
>>> - Gitter Chatroom: https://gitter.im/apereo/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 on the web visit
>>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAH2NqNZSrDvJjQRV210YgBaR%3DvXBG3%2BwV6tDMs81QJADb04%3Duw%40mail.gmail.com
>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAH2NqNZSrDvJjQRV210YgBaR%3DvXBG3%2BwV6tDMs81QJADb04%3Duw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> - Website: https://apereo.github.io/cas
>> - Gitter Chatroom: https://gitter.im/apereo/cas
>> - List Guidelines: https://goo.gl/1VRrw7
>> - Contributions: https://goo.gl/mh7qDG
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "CAS Community" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/a/apereo.org/d/topic/cas-user/9c023dq7rVU/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAL3JkELjbWAB3WaU-h7ACfcvTHZYjLX7gR1aU2A_1-y%2B1J7zMg%40mail.gmail.com
>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAL3JkELjbWAB3WaU-h7ACfcvTHZYjLX7gR1aU2A_1-y%2B1J7zMg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/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 on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAH2NqNYzFfVofFyAQCHuDUOkxRv46Tb6zNM3z1%3D78iu3XtUBvQ%40mail.gmail.com.

Reply via email to