...
Info |
---|
If you are using OAuth 1, you will get the |
...
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Parameter Name | Description |
---|---|
OAuth Server | The server URL of the WSO2 Identity Server. |
Username | The user name to be used to log into the WSO2 Identity Server. |
Password | The password used to log into the WSO2 Identity Server. |
...
...
Example
Anchor | ||||
---|---|---|---|---|
|
In the following OAuth mediator configuration accesses a remote service via the https://localhost:9443/service
URL. The user accessing this service is authenticated via the OAuth application registered in the WSO2 Identity Server and accessed via the http://ws.apache.org/ns/synapse
URL. The username used to log into the WSO2 Identity Server is foo
and the password is bar
. Both the user name and the password should be registered in the Identity Server. The Property mediator adds a property named scope
to the Synapse message context.
Code Block | |||
---|---|---|---|
| |||
<property name="scope" scope="axis2" type="STRING" value="123"/>
<oauthService xmlns="http://ws.apache.org/ns/synapse" remoteServiceUrl="https://localhost:9443/services" username="foo" password="bar" /> |