OAUTH 1.0 not working


#1

Hi. I’m new to RAML and am trying to put an example together. Basically when I use the api-console to try to execute the method, it just hangs. Looking from the server side I see

2016-12-15 00:14:48,174 INFO [LoggingInInterceptor:234] Inbound Message

ID: 1
Address: http://localhost:8080/oscar_15/ws/oauth/initiate
Encoding: UTF-8
Http-Method: OPTIONS
Content-Type:
Headers: {Accept=[/], accept-encoding=[gzip, deflate, sdch, br], accept-language=[en-US,en;q=0.8], access-control-request-headers=[authorization], access-control-request-method=[POST], connection=[keep-alive], Content-Type=[null], host=[localhost:8080], origin=[http://localhost], referer=[http://localhost/raml/dist/], user-agent=[Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36]}

2016-12-15 00:14:48,192 INFO [LoggingOutInterceptor:234] Outbound Message

ID: 1
Response-Code: 200
Content-Type:
Headers: {Allow=[POST, GET, OPTIONS, HEAD], Date=[Thu, 15 Dec 2016 05:14:48 GMT], Content-Length=[0]}

but no follow up calls to initiate the OAUTH flow. Looking for anyone whose successfully done this.

#%RAML 1.0
title: OSCAR EMR
version: v15.0.0
baseUri: http://localhost:8080/oscar_15/ws/services
securitySchemes:
oauth_1_0:
description: OAuth 1.0 authentication.
type: OAuth 1.0
settings:
requestTokenUri: http://localhost:8080/oscar_15/ws/oauth/initiate
authorizationUri: http://localhost:8080/oscar_15/ws/oauth/authorize
tokenCredentialsUri: http://localhost:8080/oscar_15/ws/oauth/token
securedBy: [oauth_1_0]
/providerService/providers_json:
get:
responses:
200:
body:
application/json:
example: |
{
“message” : “Hello World”
}