Skip to content

Commit

Permalink
Merge pull request #856 from mulesoft/feat/W-15791262/client-secret-n…
Browse files Browse the repository at this point in the history
…ot-mandatory

Feat/w-15791262/client secret not mandatory
  • Loading branch information
leandrogilcarrano authored Jun 3, 2024
2 parents 69314c8 + fa95793 commit 2ef007c
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 16 deletions.
1 change: 1 addition & 0 deletions demo/apis.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"models/demo-api/demo-api.raml": "RAML 1.0",
"models/appian-api/appian-api.raml": "RAML 1.0",
"models/oAuth2/oAuth2.raml": "RAML 1.0",
"models/nexmo-sms-api/nexmo-sms-api.raml": "RAML 1.0",
"models/google-drive-api/google-drive-api.raml": "RAML 1.0",
"models/httpbin/httpbin.json": ["OAS 2.0", "application/json"],
Expand Down
25 changes: 25 additions & 0 deletions demo/models/oAuth2/oAuth2.raml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#%RAML 1.0
title: oauth2
description: Best API ever
securitySchemes:
oAuth2:
type: OAuth 2.0
settings:
authorizationGrants:
[ client_credentials, password, authorization_code, implicit ]
authorizationUri: https://api.example.com/oauth2/authorize
accessTokenUri: https://api.example.com/oauth2/token
redirectUri: https://tudev-app.com/callback
/products:
get:
securedBy:
- oAuth2
responses:
200:
body:
application/json:
type: string
example: |
{
"message": "OK"
}
3 changes: 2 additions & 1 deletion demo/standalone/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class ApicApplication extends DemoBase {
this.apis = [
['google-drive-api', 'Google Drive API'],
['httpbin', 'HTTPbin API'],
['oAuth2', 'oAuth2'],
['data-type-fragment', 'RAML data type fragment'],
['demo-api', 'Demo API'],
['jldAsync26', 'Async API 2.6'],
Expand All @@ -32,7 +33,7 @@ class ApicApplication extends DemoBase {
demoTemplate() {
return html`<api-console-app
app
redirecturi="https://auth.advancedrestclient.com/oauth-popup.html"
redirecturi="http://localhost:3000/public/oauth-popup.html"
oauth2clientid="821776164331-rserncqpdsq32lmbf5cfeolgcoujb6fm.apps.googleusercontent.com"
rearrangeEndpoints
>
Expand Down
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "api-console",
"description": "The API Console to automatically generate API documentation from RAML and OAS files.",
"version": "6.6.41",
"version": "6.6.42",
"license": "CPAL-1.0",
"main": "index.js",
"module": "index.js",
Expand Down

0 comments on commit 2ef007c

Please sign in to comment.