Skip to main content

Hi  We are using JWT in some of our project and we are getting information from the JWT by using  authentication.properties.claims.preferred_username  After upgrading to J17 this is always returning null when running project locally.  But the same code is on Staging on Cloudhub and is working normal there.  For us it's really bad not to be able to test our code locally before pushing to staging and production.  I've tried several options  - All policies up2date  - Use Runtime 4.6, 4.9, 4.10  - Update all modules  But no luck the authentication object is always null (locally)    So the problem is  authentication object is ok on CloudHub  authentication object is null running locally   

2 answers
  1. Manish Kumar Yadav (Hitachi Energy) Forum Ambassador
    Jan 16, 10:41 PM

    Hello @Khyati Mehta

     

    First of all, I will never agree the answer you have provided , trust me. Please delete it or edit it.  

     

    @Sveinbjörn Geir Hlöðversson

    To give 100% working answer, First please check the below connection and let me know.:Based on your control Plane , your URLs for Anypoint Paltform for control would get change .  

     

    Hello , First of all, I will never agree the answer you have provided , trust me. Please delete it or edit it. , To give 100% working answer, First please check the below connection and let me know.

     

    Thanks, 

    Manish Kumar Yadav 

    Trailblazer Community Forum Ambassadors 

     

     

     

0/9000