Java Microservice Simple and only Error fix -- 2

Job ID: 32675172

Budget: ₹600 – ₹1,500 INR

I need someone expert in java microservice oAuth authentication.
My application is working fine.

My principal object returning string instead of user object. That is the only thing which I need to be fixed.

for more reference check similar issue on stackoverflow: https://stackoverflow.com/questions/54279755/getprincipal-method-returning-username-instead-of-userdetails