Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #42 from banders/master
Browse files Browse the repository at this point in the history
upgrade to swagger-ui 3.12.1
  • Loading branch information
banders authored Mar 12, 2018
2 parents a56d980 + 27b56e3 commit a1de937
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 34 deletions.
9 changes: 8 additions & 1 deletion ckanext/openapi/public/swagger-ui/dist/oauth2-redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,18 @@
oauth2.auth.code = qp.code;
oauth2.callback({auth: oauth2.auth, redirectUrl: redirectUrl});
} else {
let oauthErrorMsg
if (qp.error) {
oauthErrorMsg = "["+qp.error+"]: " +
(qp.error_description ? qp.error_description+ ". " : "no accessCode received from the server. ") +
(qp.error_uri ? "More info: "+qp.error_uri : "");
}

oauth2.errCb({
authId: oauth2.auth.name,
source: "auth",
level: "error",
message: "Authorization failed: no accessCode received from the server"
message: oauthErrorMsg || "[Authorization failed]: no accessCode received from the server"
});
}
} else {
Expand Down
34 changes: 14 additions & 20 deletions ckanext/openapi/public/swagger-ui/dist/swagger-ui-bundle.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion ckanext/openapi/public/swagger-ui/dist/swagger-ui.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ckanext/openapi/public/swagger-ui/dist/swagger-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ckanext/openapi/public/swagger-ui/dist/swagger-ui.js.map

Large diffs are not rendered by default.

0 comments on commit a1de937

Please sign in to comment.