public class Main
extends Object
This client demonstrates an OAuth1.0a equivalent flow to the Resource Owner Password grant type flow of OAuth2.0.
This client will first register a OAuth1.0a client in Identity Server using the OAuthAdminService SOAP API.
Then it will request for OAuth1.0a request token credentials (request token + request token secret)
from Identity Server using the OAuth1.0a request token endpoint.
Then using the OAuthService SOAP API it will authorize the OAuth1.0a request token issued in the previous step.
NOTE: The OAuth1.0a authorization endpoint is not being used to authorize the request token since it is assumed
that the client does not have capability to invoke a browser and redirect the user.
The third step is to request for OAuth1.0a access token credentials (access token + access token secret)
from Identity Server using the OAuth1.0a access token endpoint.
Finally the client will validate the access token credentials received from Identity Server using the OAuthService
SOAP API.