Skip to content

Commit

Permalink
Merge pull request swagger-api#1225 from ponelat/fix/1194
Browse files Browse the repository at this point in the history
fix oauth switch
  • Loading branch information
fehguy committed May 8, 2015
2 parents a477da6 + 2a3d75f commit 1cdac04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<script src='swagger-ui.js' type='text/javascript'></script>
<script src='lib/highlight.7.3.pack.js' type='text/javascript'></script>
<script src='lib/marked.js' type='text/javascript'></script>
<script src='lib/swagger-oauth.js' type='text/javascript'></script>

<script type="text/javascript">
$(function () {
Expand All @@ -34,13 +35,11 @@
supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
onComplete: function(swaggerApi, swaggerUi){
if(typeof initOAuth == "function") {
/*
initOAuth({
clientId: "your-client-id",
realm: "your-realms",
appName: "your-app-name"
});
*/
}

$('pre code').each(function(i, e) {
Expand Down
2 changes: 1 addition & 1 deletion lib/swagger-oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,4 +281,4 @@ window.onOAuthComplete = function onOAuthComplete(token) {
}
}
}
}
}

0 comments on commit 1cdac04

Please sign in to comment.