Commit 5b192b12 authored by Tobias Assmann's avatar Tobias Assmann
Browse files

add more logging to ssa eid endpoint

parent d1ec58cf
......@@ -46,12 +46,13 @@ public class EIDEndpoint {
@Produces(MediaType.TEXT_XML)
@Path("/tctoken/{sessionId}")
public JAXBElement<TCTokenType> tcToken(@PathParam("sessionId") String sessionId) {
log.debug("tctoken got sessionId:"+sessionId);
log.info("tctoken: got sessionId:"+sessionId);
Session session = this.readSession(sessionId);
byte[] documentHash = (byte[])session.get(Session.KEY_CLIENT_DOCUMENT_HASH).get();
// get stuff from eID useID
UseIDResponseType useID_return = eidClient.useId(documentHash);
String eidSessionIdString = useID_return.getPSK().getID();
log.info("tctoken: sessionId from eID-Server:"+eidSessionIdString);
session.set(Session.KEY_EID_SERVER_SESSIONID, useID_return.getSession().getID());
// replace session for user with new session using sessionID from eID server
session = sessionStore.replaceSession(session, eidSessionIdString);
......@@ -70,6 +71,7 @@ public class EIDEndpoint {
psp.setPSK(useID_return.getPSK().getKey());
tcToken.setPathSecurityParameters(psp);
}
log.info("tctoken: returning tctoken");
return new ObjectFactory().createTCTokenType(tcToken);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment