Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/w-15791262/client secret not mandatory #856

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading