Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OAuth token - 401 Unauthorized

partlycloudyFeb 12 2021 — edited Feb 14 2021

I followed the instructions here and here to secure the service here and used this Firefox add-on to send a request to the /oauth/token endpoint with Basic authentication provided the client_id and client_secret from the user_ords_clients view and POST body grant_type=client_credentials but I get a 401/Unauthorized
This support note talks about a WebLogic setting enforce-valid-basic-auth-credentials=false to disable Basic authentication but I am not sure whether apex.oracle.com uses WLS or Tomcat. Besides, on our own environment, we use Tomcat and we see the same error. Is there a equivalent setting for Tomcat? Or is there something else going on here?
Any ideas?
Thanks

Comments

Sergey.N-Oracle

Hi!

It is impossible to access RTC registers from Java app.

/Sergey

Andrey.P-Oracle

Hi!

Actually you can change the value of the property using the following method:

Settings.setStringProperty("rtc.time", "2016:01:01:00:00:00");

Your application shall exit after invoking this line in order for the property to be written into the file. Please note that the rtc is only updated from the property during power-up or reset of the MCU. So that the new time is not applied when your application restarts, you need to force MCU to restart. And because Java APIs are limited on k64 there seem to be no way to initiate that from the application

Regards,

Andrey

2892292

Thanks for the info. It sure would be nice...

Maybe I need to set a pin to force a reset! 

1 - 3

Post Details

Added on Feb 12 2021
36 comments
6,453 views