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
On OMCe I have made a backend, added an API, and set the endpoints. I have set the "Login Required" switch to "off" (see image api_1.png). I assume that with this it should not ask for Authorization headers, but it returns a 401 unauthorized response (see image api_2.png).
When I add Authorization header and Oracle-Mobile-Backend-ID to the GET request, it works fine (see image api_3.png).
Is it possible to make a simple GET request to the API without having to provide the credentials? OR, can I add the access token and backend ID as a query param?
Comment
You should be calling that API through a Mobile backend - for the mobile back end you can supply an authorization header as anonymous.
regards
Average Rating:



2 ratings
|
Sign in to rate this
Hi Asser,
All API calls have to be authenticated in some way. The login required switch means you would use one of the supported user authentications (BASIC, OAUTH). When it is switched off you need to use the anonymous access key that is configured against your mobile backend. You must expose your apis by adding them to a Backend.
Clear?
Martin
Average Rating:



2 ratings
|
Sign in to rate this