Page tree
Skip to end of metadata
Go to start of metadata

The basic authentication methods do not provide access to the PeopleToken that is created for the initial authentication. Instead, the relevant values are stored in an AuthenticationResult object in the WWClient. However, there may be scenarios where you want to store the PeopleToken in a database or long-term cache. To do this, additional methods have been added to the WWAuthenticationEndpoint class.

  • WWauthenticationEndpoint.authorizeUserGetToken(String basicAuthApp, String userToken, String url) allows you to perform an initial authentication with the user's token and return the PeopleToken.
  • WWAuthenticationEndpoint.authorizeUserRefreshTokenGetToken(String basicAuthApp, String refreshToken, String scope) allows you to re-authenticate with the refreshToken and return the PeopleToken.

Security Warning

If you are storing the PeopleToken somewhere, ensure you properly encrypt the token because it will include all credentials required to run as the user and re-authenticate when the token expires.

You need to pass the Base64 encoded application credentials to the method. The easiest way to do that is to pass the appId and appSecret to a WWClient object and use the getAppCredentials() method. You can then pass those credentials, the initial user token and the scope to use.

Output Refresh Token
public void getToken() throws WWException, UnsupportedEncodingException {
    WWClient client = WWClient.buildClientUserAccess(null, "5c0bf268-c363-4aae-bbec-e2dbebb2fb72", "vKTpM47ST8ME9gQ9iWt_VjknvMCW", null, null);
    String appCredential = client.getAppCredentials();
    WWAuthenticationEndpoint ep = new WWAuthenticationEndpoint();
    PeopleToken token = ep.authorizeUserGetToken(appCredentials, "ricoZt", ";
    WWClient altClient = WWClient.buildClientUserAccessFromToken("5c0bf268-c363-4aae-bbec-e2dbebb2fb72", "vKTpM47ST8ME9gQ9iWt_VjknvMCW", token);

If you're storing the token, you will need to manually refresh and get the updated PeopleToken when it's due to expire.

    public PeopleToken refresh() throws WWException, UnsupportedEncodingException {
        WWAuthenticationEndpoint ep = new WWAuthenticationEndpoint();
        PeopleToken token = ep.authorizeUserRefreshTokenGetToken(appCredentials, token.getRefresh_Token(), token.getScopeAsString());
        return token;


  1. Anonymous

    Awesome! This is a good change because the users can, now, make it easy. People always want to fix the bugs and this time they will enjoy. We look forward to more enhancements to ease the use. Make it more simple and effective like how cheap essay writers deal with complicated papers. The users do not want to spend more time on searching for tools. They need everything at one place. Thank you for the update and I appreciate the information shared.

  2. Anonymous

    Those are valuable tips for running a user with a stored people Token. If you are searching for people token. You can use a bunch of tips to manage your work by following the above method. Our company Thesis writing Service deals with problems of PhD students who face problems to deal with them.

  3. Anonymous

    Your blog site is so superb. How fortunate to see everything you have created. I hope you proceed to do the job tough. I am the best Dubai Mobile App Developer, well known for mobile application development. I am always working on the latest technology and create Advanced IOS and Android apps.

  4. Anonymous

    What an amazing post you are sharing here. I am really wonder reading this and welcome method of writing an article. You are always sharing some quality content for us like this post, that why we are always like your posts. I hope you are continuing writing fabulous and informative article for us. I would like you to recommend high quality essay content from cheap essay writing service ; it is helpful to students who are studying in higher studies. Once again I thankful to your post. 

  5. Anonymous

    This is an excellent post. Great resource indeed. 



    Solis Hotel 

  6. Anonymous

    For the best Legitimate Custom Coursework Writing Services, find the best Online Coursework Writing Service Provider for all your Custom College Coursework Services

  7. Anonymous

    Plumbers Near Me would give services while keeping in mind the professional norms of this industry. Customers can rely on Plumbers in my Area for all type of services that they may require.

  8. Anonymous

    Brother Printer Setup Number can be dialed if you need some technical assistance for Brother Wireless Printer Setup or any other issues. Reach us anytime.

  9. Anonymous

    Book Flights to Denver. Get Cheap flights to Denver Guaranteed on a huge option of flights deals to Denver. Grab this attractive offer now.

  10. Anonymous

    I just got tired of searching various sites and now, I got what I wanted. Now, I got assistance from this website. I always get positive result from the website. Oh, I forgot something. I am an enthusiastic traveler, working at Southwest Customer Service.  I am working with a motive to support the dreams of travelers. For your next adventure, reach to me and book your seats. I will offer you the best offers.

  11. Anonymous

    At Southwest Airlines Reservations, Reserve your seats at reasonable fares. Make your journey incredible with your family and friends. For your bookings, reach our official site and get to know about airlines, deals, reservations and more. For your future bookings, we always recommend you to visit our official site and book your tickets.

  12. Anonymous

    For all your my journeys, I searched millions of sites and now I got what I wanted. My friend suggested me this site and now, I can book tickets hassle-free for my next journey. I was searching for very hard but, I am relaxed. Thanks to my travel specialist at American Phone Number for reserving my seats.

  13. Anonymous

    Planning a vacation but low on budget? At American Airlines Reservations , you will find exciting offers and deals to make your vacation stress-free and more fun. We offer our travellers with airline tickets discounts, vacation packages, cheap budget-friendly flights Save more by booking your American Airlines Tickets, and have great experience flying with us.

  14. Anonymous

    If you need any guidance with searching discounts or making a reservation or other services, contact our experts at American Airlines Reservations and get quick support. Call at our toll-free number and get connected with the experts at American Airlines Reservations and get your American Airlines Booking in no time.

  15. Anonymous

    According to United Airlines Official Site, the carrier is ready to serve five new domestic routes from its Washington hub. United carries more than 100 million passengers each year and operates over 1500 flights per day.

  16. Anonymous

    You can arrange many more things with us. For instance, having your specific meal, having the bags checked, prior checking and carrying the first two for free and so much more. Just ask us what you need from the experts that are always at your service call us anytime at Air China Airlines Phone Number.

  17. Anonymous

    Our experienced Air China Customer Service team will assist you and through that you would be able to enjoy an experience of flying with Air China like you never did. There are lots of information or perks of flying that the flyers are mostly unaware of. That’s where we come as we will help you in getting best offers for you.

  18. Anonymous

    Enjoy the premium class facility at cheap fares, thanks to American Phone Number. For all your bookings, the agent will offer you the most suitable deal for you and with little changes you will be able to enjoy entire trip with lots of perks and benefits you choose while booking.

  19. Anonymous

    The team Southwest Phone Number are specialist in bookings done for Groups. We ensure your groups gets premium comfort on your travel with affordable deals and that is the reason that makes us the best. Traveling with a group requires everybody to be together! Our experts can book you all at one go and get you all seated together in the aircraft.

  20. Anonymous

    Just give us a call at Air France Contact Number, and book a world-class journey at exceptionally lower rates. Also, get all the information about airlines, flights or anything related to your journey with us. We’re available 24/7 round the clock for you.

  21. Anonymous

    Internet is the best source to search flights and airlines related inquires. But, there are numerous platforms available online that provide both authentic and non-authentic information which creates confusion and trustability issues. Don’t let these confusions causing you headaches; you can get authentic information by calling Japan Contact Number. As our team doesn’t just create deals for you but also compares hundreds of websites and official sources to provide you the most affordable price.

  22. Anonymous

    Hawaiian Contact Number has a team of famous and skilled travel experts who are well trained according to the latest demands of the industry. We are one of the fastest-growing firms in the tourism industry. Besides ticket booking, you can avail of many services that can help you to enjoy your flying experience more rather than worrying about the procedures of the flights.

  23. Anonymous

    Our helpline number is available to you 24/7, you just have to call at our number to make your bookings. What’s more? You can ask for any kind of query related to baggage, cabin, check-in policy and more. You can consult our experts many times as you want as there are no applicable charges to contact at British Contact Number.

  24. Anonymous

    Get the best and reliable assistance to m make your flying experience unique. At our platform, meet with our travel agents who are dedicated to their services. They will love to help you with all sorts of queries. Book now Southwest Customer Care through and get early bird offers.

  25. Anonymous

    Plan a trip anywhere for vacation or business and dial at our United Airlines Reservations helpline. Although scores of websites and other on-the-call booking services exist, we are nowhere behind in giving our customers the best. Additionally, we are masters of customization.

  26. Anonymous

    Get quick and instant resolution of the issues and problems by connecting with our team of technical specialist via Mcafee Customer Service Phone Number.

  27. Anonymous

    Get excellent assistance on all your antivirus issues by calling our experts at McAfee Antivirus Phone Number, available 24/7 to resolve all your troubles.

  28. Anonymous

    Stay in touch with our latest offers and great travel deals available only at the Spirit Airlines customer service number, experience many benefits. With the help of Spirit Airlines customer service number Book Flight's assistant. Our team has followed you with the best prices on flight booking.

  29. Anonymous

    Need to upgrade your home locks or simply get out of a locked car. We are the best answers for your needs of Locksmith Near Me or Locksmith In My Area.

  30. Anonymous

    Dial Spirit Toll Free Number to resolve all your queries with our experts. Here you will get best discounted tickets with reasonable and very affordable prices.

  31. Anonymous

    If you are looking for best discounted tickets then visit American Airlines Number and get best deals and offers on flight tickets. Just connect with our experts and fly for your vacations.Top of Form

  32. Anonymous

    Now British Airways are the king of this group as they carry around over 46 million people over the year. There is no denying how much British people love to drink tea. BA serves more than 25 million cups of tea every year including both long and short-haul flights. 

  33. Anonymous

    We strive to streamline your repayment process with Student Loan Consolidation. Contact us for help for the best Student Loan Consolidation Companies.

Write a comment…