Skip to content

Commit 2ef007c

Browse files
Merge pull request #856 from mulesoft/feat/W-15791262/client-secret-not-mandatory
Feat/w-15791262/client secret not mandatory
2 parents 69314c8 + fa95793 commit 2ef007c

File tree

5 files changed

+43
-16
lines changed

5 files changed

+43
-16
lines changed

demo/apis.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"models/demo-api/demo-api.raml": "RAML 1.0",
33
"models/appian-api/appian-api.raml": "RAML 1.0",
4+
"models/oAuth2/oAuth2.raml": "RAML 1.0",
45
"models/nexmo-sms-api/nexmo-sms-api.raml": "RAML 1.0",
56
"models/google-drive-api/google-drive-api.raml": "RAML 1.0",
67
"models/httpbin/httpbin.json": ["OAS 2.0", "application/json"],

demo/models/oAuth2/oAuth2.raml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#%RAML 1.0
2+
title: oauth2
3+
description: Best API ever
4+
securitySchemes:
5+
oAuth2:
6+
type: OAuth 2.0
7+
settings:
8+
authorizationGrants:
9+
[ client_credentials, password, authorization_code, implicit ]
10+
authorizationUri: https://api.example.com/oauth2/authorize
11+
accessTokenUri: https://api.example.com/oauth2/token
12+
redirectUri: https://tudev-app.com/callback
13+
/products:
14+
get:
15+
securedBy:
16+
- oAuth2
17+
responses:
18+
200:
19+
body:
20+
application/json:
21+
type: string
22+
example: |
23+
{
24+
"message": "OK"
25+
}

demo/standalone/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class ApicApplication extends DemoBase {
1313
this.apis = [
1414
['google-drive-api', 'Google Drive API'],
1515
['httpbin', 'HTTPbin API'],
16+
['oAuth2', 'oAuth2'],
1617
['data-type-fragment', 'RAML data type fragment'],
1718
['demo-api', 'Demo API'],
1819
['jldAsync26', 'Async API 2.6'],
@@ -32,7 +33,7 @@ class ApicApplication extends DemoBase {
3233
demoTemplate() {
3334
return html`<api-console-app
3435
app
35-
redirecturi="https://auth.advancedrestclient.com/oauth-popup.html"
36+
redirecturi="http://localhost:3000/public/oauth-popup.html"
3637
oauth2clientid="821776164331-rserncqpdsq32lmbf5cfeolgcoujb6fm.apps.googleusercontent.com"
3738
rearrangeEndpoints
3839
>

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "api-console",
33
"description": "The API Console to automatically generate API documentation from RAML and OAS files.",
4-
"version": "6.6.41",
4+
"version": "6.6.42",
55
"license": "CPAL-1.0",
66
"main": "index.js",
77
"module": "index.js",

0 commit comments

Comments
 (0)