Revision 59615
Added by Katerina Iatropoulou over 3 years ago
PersonalTokenServlet.java | ||
---|---|---|
12 | 12 |
import org.apache.http.impl.client.HttpClients; |
13 | 13 |
import org.apache.http.message.BasicNameValuePair; |
14 | 14 |
import org.apache.log4j.Logger; |
15 |
import org.mitre.openid.connect.client.service.impl.StaticClientConfigurationService; |
|
15 | 16 |
import org.mitre.openid.connect.model.OIDCAuthenticationToken; |
17 |
import org.springframework.beans.factory.annotation.Autowired; |
|
16 | 18 |
import org.springframework.beans.factory.annotation.Value; |
17 | 19 |
import org.springframework.security.access.prepost.PreAuthorize; |
18 | 20 |
import org.springframework.security.core.context.SecurityContextHolder; |
... | ... | |
39 | 41 |
@Value("${oidc.id}") |
40 | 42 |
private String id; |
41 | 43 |
|
44 |
@Autowired |
|
45 |
private StaticClientConfigurationService staticClientConfigurationService; |
|
46 |
|
|
42 | 47 |
private Logger logger = Logger.getLogger(PersonalTokenServlet.class); |
43 | 48 |
|
44 | 49 |
public void init(ServletConfig config) throws ServletException { |
Also available in: Unified diff
service registration with keys enabled