Thank you Jeremiah for your answer
my service.json file
{
@class: org.apereo.cas.support.saml.services.SamlRegisteredService
serviceId:
https://test-moodle.exemple.com name: testpra
id: 1730131468521
evaluationOrder: 2
attributeReleasePolicy:
{
@class: org.apereo.cas.services.ReturnAllowedAttributeReleasePolicy
attributeFilter:
{
@class: org.apereo.cas.services.support.RegisteredServiceChainingAttributeFilter
filters:
[
java.util.ArrayList
[
{
@class: org.apereo.cas.services.support.RegisteredServiceMappedRegexAttributeFilter
patterns:
{
@class: java.util.LinkedHashMap
givenName: givenName
sn: sn
mail: mail
}
}
]
]
order: -
2147483648 }
excludeDefaultAttributes: true
principalIdAttribute: mail
}
metadataLocation:
https://test-moodle.exemple.com/Shibboleth.sso/Metadata requiredNameIdFormat: urn:oasis:names:tc:SAML:2.0:nameid-format:persistent
encryptAssertions: true
signingCredentialType: X509
attributeNameFormats:
{
@class: java.util.LinkedHashMap
mail: urn:oasis:names:tc:SAML:2.0:attrname-format:basic
givenName: urn:oasis:names:tc:SAML:2.0:attrname-format:basic
sn: urn:oasis:names:tc:SAML:2.0:attrname-format:basic
}
}
##########################################################
i have this log
2024-10-28 19:17:30,982 INFO [org.apereo.cas.authentication.DefaultAuthenticationManager] - <Authenticated principal
te...@exemple.com] with attributes [{displayName=[personnel], eduPersonPrimaryAffiliation=[Personnel], givenName=[user ], mail=[
te...@exemple.com], sn=[personnel]}] via credentials [[UsernamePasswordCredential(username=
te...@exemple.com source=null, customFields={})]].>
2024-10-28 19:17:30,982 INFO [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
=============================================================
WHO:
te...@exemple.comWHAT: [UsernamePasswordCredential(username=
te...@exemple.com, source=null, customFields={})]
ACTION: AUTHENTICATION_SUCCESS
APPLICATION: CAS
WHEN: Mon Oct 28 19:17:30 UTC 2024
CLIENT IP ADDRESS: x.x.x.x
SERVER IP ADDRESS: 127.0.0.1
=============================================================
>
2024-10-28 19:17:30,984 INFO [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
=============================================================
WHO:
te...@exemple.comWHAT: {result=Service Access Granted, service=
https://test-moodle.exemple.com, requiredAttributes={}}
ACTION: SERVICE_ACCESS_ENFORCEMENT_TRIGGERED
APPLICATION: CAS
WHEN: Mon Oct 28 19:17:30 UTC 2024
CLIENT IP ADDRESS: x.x.x.x
SERVER IP ADDRESS: 127.0.0.1
=============================================================
>
2024-10-28 19:17:31,022 INFO [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
=============================================================
WHO:
te...@exemple.comWHAT: {result=Service Access Granted, service=
https://test-moodle.exemple.com, requiredAttributes={}}
ACTION: SERVICE_ACCESS_ENFORCEMENT_TRIGGERED
APPLICATION: CAS
WHEN: Mon Oct 28 19:17:31 UTC 2024
CLIENT IP ADDRESS: x.x.x.x
SERVER IP ADDRESS: 127.0.0.1
=============================================================
>
2024-10-28 19:17:31,024 INFO [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
=============================================================
WHO:
te...@exemple.comWHAT: TGT-2-********EvlQ7eY-srv-casfree
ACTION: TICKET_GRANTING_TICKET_CREATED
APPLICATION: CAS
WHEN: Mon Oct 28 19:17:31 UTC 2024
CLIENT IP ADDRESS: x.x.x.x
SERVER IP ADDRESS: 127.0.0.1
=============================================================
>
2024-10-28 19:17:31,030 INFO [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
=============================================================
WHO:
te...@exemple.comWHAT: {result=Service Access Granted, service=
https://test-moodle.exemple.com, requiredAttributes={}}
ACTION: SERVICE_ACCESS_ENFORCEMENT_TRIGGERED
APPLICATION: CAS
WHEN: Mon Oct 28 19:17:31 UTC 2024
CLIENT IP ADDRESS: x.x.x.x
SERVER IP ADDRESS: 127.0.0.1
=============================================================
>
2024-10-28 19:17:31,031 INFO [org.apereo.cas.DefaultCentralAuthenticationService] - <Granted service ticket [ST-2-********QpYP9CE-srv-casfree] for service [
https://test-moodle.exemple.com] and principal [
te...@exemple.com]>
2024-10-28 19:17:31,031 INFO [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
=============================================================
WHO:
te...@exemple.comWHAT: {ticket=ST-2-********QpYP9CE-srv-casfree, service=
https://test-moodle.exemple.com}
ACTION: SERVICE_TICKET_CREATED
APPLICATION: CAS
WHEN: Mon Oct 28 19:17:31 UTC 2024
CLIENT IP ADDRESS: x.x.x.x
SERVER IP ADDRESS: 127.0.0.1