]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
a325cd05351ec6746a27b95a578544f69703daef
[tmp/jakarta-migration.git] /
1 package org.collectionspace.authentication;
2
3 import org.springframework.context.ApplicationListener;
4 import org.springframework.security.authentication.event.AuthenticationSuccessEvent;
5
6 public class CSpaceAuthenticationSuccessEvent implements ApplicationListener<AuthenticationSuccessEvent> {
7
8         @Override
9         public void onApplicationEvent(AuthenticationSuccessEvent event) {
10                 // TODO Auto-generated method stub
11                 System.out.println(); //org.springframework.security.authentication.UsernamePasswordAuthenticationToken@8a633e91: Principal: org.collectionspace.authentication.CSpaceUser@b122ec20: Username: admin@core.collectionspace.org; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_1_TENANT_ADMINISTRATOR,ROLE_SPRING_ADMIN; Credentials: [PROTECTED]; Authenticated: true; Details: {grant_type=password, username=admin@core.collectionspace.org}; Granted Authorities: ROLE_1_TENANT_ADMINISTRATOR, ROLE_SPRING_ADMIN
12         }
13
14 }