Browse Source

Added built files

bubble
sonicd300 9 years ago
parent
commit
66a049c664
4 changed files with 883 additions and 881 deletions
  1. +2
    -1
      dist/index.html
  2. +3
    -1
      dist/lib/swagger-oauth.js
  3. +866
    -866
      dist/swagger-ui.js
  4. +12
    -13
      dist/swagger-ui.min.js

+ 2
- 1
dist/index.html View File

@@ -38,7 +38,8 @@
initOAuth({
clientId: "your-client-id",
realm: "your-realms",
appName: "your-app-name"
appName: "your-app-name",
scopeSeparator: ","
});
}



+ 3
- 1
dist/lib/swagger-oauth.js View File

@@ -5,6 +5,7 @@ var clientId;
var realm;
var oauth2KeyName;
var redirect_uri;
var scopeSeparator;

function handleLogin() {
var scopes = [];
@@ -151,7 +152,7 @@ function handleLogin() {
url += '&redirect_uri=' + encodeURIComponent(redirectUrl);
url += '&realm=' + encodeURIComponent(realm);
url += '&client_id=' + encodeURIComponent(clientId);
url += '&scope=' + encodeURIComponent(scopes.join(' '));
url += '&scope=' + encodeURIComponent(scopes.join(scopeSeparator));
url += '&state=' + encodeURIComponent(state);

window.open(url);
@@ -185,6 +186,7 @@ function initOAuth(opts) {
popupDialog = (o.popupDialog||$('.api-popup-dialog'));
clientId = (o.clientId||errors.push('missing client id'));
realm = (o.realm||errors.push('missing realm'));
scopeSeparator = (o.scopeSeparator||' ');

if(errors.length > 0){
log('auth unable initialize oauth: ' + errors);


+ 866
- 866
dist/swagger-ui.js
File diff suppressed because it is too large
View File


+ 12
- 13
dist/swagger-ui.min.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save