1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.module.spring.security; |
8 | |
|
9 | |
import org.springframework.security.core.Authentication; |
10 | |
import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken; |
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | 0 | public class PreAuthenticatedAuthenticationProvider implements SpringAuthenticationProvider |
19 | |
{ |
20 | |
|
21 | |
|
22 | |
|
23 | |
public Authentication getAuthentication(org.mule.api.security.Authentication authentication) |
24 | |
{ |
25 | 0 | return new PreAuthenticatedAuthenticationToken(authentication.getPrincipal(), |
26 | |
authentication.getCredentials()); |
27 | |
} |
28 | |
} |
29 | |
|
30 | |
|