For partners that build or integrate commercially available applications and service solutions with the Oracle Cloud Platform
For partners that provide implementation or managed services around Oracle Cloud Applications
Hi Experts,
Exposed a sample REST API in OIC some time back and it was working fine with Basic Authentication. But this service stopped working and throwing 401 Unauthorized error. I added a 2 step verification for the OIC user but tried to hit the REST API again but same issue. I'm able to login into OIC successfully but REST API is throwing error.
Has some faced such issues. Please help.
Comment
2 things you can check,
Average Rating:



1 rating
|
Sign in to rate this
Be the first to rate this
|
Sign in to rate this
Remove the 2-step verification for the user and try.
Be the first to rate this
|
Sign in to rate this
Hemanth, it was failing before adding 2 step verification also
Be the first to rate this
|
Sign in to rate this
Ankur - Do you mean this is irrelevant here?
What is the error message you see in diagnostics logs before adding 2 step verification? Are you sure the password is not expired or user is not locked? If you are able to login successfully to UI and runtime doesn't work - Is the user SSO enabled user?
Average Rating:



1 rating
|
Sign in to rate this
Hi Ankur,
If SSO enabled for this user, you cant use it. It is product bug. So we have created separate user in OIC and we are using it now.
Thanks,
Mohan
Average Rating:



1 rating
|
Sign in to rate this