...
| Bloc de code | ||
|---|---|---|
| ||
<bean id="pegaseAuthProvider" class="org.esupportail.sgc.services.rest.BearerTokenAuthProvider">
<property name="tokenEndpoint" value="https://authn-app.test-example.pc-scol.fr/cas/v1/tickets"/>
<property name="bodyCredentials">
<map>
<entry key="username" value="usernamePegaseApi"/>
<entry key="password" value="passwordDePegaseApi"/>
<entry key="token" value="true"/>
</map>
</property>
</bean>
<bean id="pegaseUserInfoService" class="org.esupportail.sgc.services.userinfos.RestUserInfoService" p:order="3">
<property name="authProvider" ref="pegaseAuthProvider"/>
<property name="spelFilter" value="#userInfosInComputing['supannEtuId'] != null and !#userInfosInComputing['supannEtuId'].isEmpty()"/>
<property name="url" value="https://ins.test-univ-example.pc-scol.fr/api/ins/ext/v2/gestion/inscription/ETAB00/{supannEtuId}/"/>
<property name="sgcParam2jsonPath">
<map>
<entry key="name" value="$.apprenant.etatCivil.nomDeNaissance"/>
<entry key="pegaseCibleCode" value="$.inscriptions[?(@.principale==true && @.cible.periode.code=='2025')].cible.code"/>
<entry key="pegaseFormationCode" value="$.inscriptions[?(@.principale==true && @.cible.periode.code=='2025')].cible.formation.code"/>
</map>
</property>
</bean>
<bean id="photoPegaseUserInfoService" class="org.esupportail.sgc.services.userinfos.RestUserInfoService" p:order="34">
<property name="authProvider" ref="pegaseAuthProvider"/>
<property name="spelFilter" value="#userInfosInComputing['supannEtuId'] != null and !#userInfosInComputing['supannEtuId'].isEmpty()"/>
<property name="url" value="https://piece.test-univ-example.pc-scol.fr/api/pie/ext/v1/etablissements/ETAB00/codeApprenant/{supannEtuId}/codePeriode/2025/codeChemin/DAN31-111>DAN331-111{pegaseFormationCode}>{pegaseCibleCode}/photo"/>
<property name="sgcParam2jsonPath">
<map>
<entry key="jpegPhoto" value=""/>
</map>
</property>
</bean> |
...