Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 62 Insurance
- 536K On-Premises Infrastructure
- 138.2K Analytics Software
- 38.6K Application Development Software
- 5.7K Cloud Platform
- 109.4K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.2K Integration
- 41.5K Security Software
How to invoke secure Rest service in SOA 12c(Basic Auth)

Hi,
I have a requirement to invoke a secure basic auth rest service in SOA. Apart from using CSF key is there any other way like sending in the headers?
Answers
-
If you attach the HTTP Basic Auth Over SSL Client Policy, OWSM will send in the headers for you... are you having problems with OWSM configuration?
Cheers,
Vlad
-
Hi!
You can set authorization header in the following property: rest.binding.http.Authorization
Value shoud be "Basic <username:password in base64>"
-
I added this property. But do I need to add any OWSM policies as well?
-
Hi Vlad,
I cannot make a call by using just OWSM policies. Headers are not going through.
Thanks.
-
Hi,
How do you know the headers are not going through? Is it returning HTTP 403 or 407 error?
Policy oracle/wss_http_token_client_policy should send HTTP Authorization header as Authorization: <type> <credentials>
For example
Authorization: Basic YWxhZGRpbjpvcGVuc2VzYW1l
Where YWxhZGRpbjpvcGVuc2VzYW1l is the base64 encoded of aladdin:opensesame