daily pastebin goal
0%
SHARE
TWEET

Untitled

a guest Jan 19th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. return ebayApiReactiveWrapper
  2.         .getSessionId(apiContext)
  3.         .flatMap(sessionId ->
  4.             request
  5.                 .session()
  6.                 .map(webSession -> {
  7.                     webSession
  8.                         .getAttributes()
  9.                         .put("ebay_session_id", sessionId);
  10.  
  11.                     return sessionId;
  12.                 })
  13.         )
  14.         .flatMap(sessionId -> {
  15.             final UriBuilder uriBuilder = uriBuilderFactory.uriString(
  16.                 ebayApiSettings.getSignInUrl()
  17.             );
  18.  
  19.             uriBuilder.queryParam("runame", ebaySettings.getRuName());
  20.             uriBuilder.queryParam("SessID", sessionId);
  21.  
  22.             return ServerResponse.temporaryRedirect(redirectUri).build();
  23.         });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top