Java 6 EE Client Credentials Bearer

32 views Asked by At

I have to send a request to a rest using HttpUrlConnection but recently the provider added client credentials auth flow.

I have all I need and it tried to generate the token thru postman and then set a bearer on the request but the token expires after 2 days. The project uses Java 6 EE and i can't change the version because it will be decomisioned in about a year.

How can i make my java code generate the token?

0

There are 0 answers