auth-monitorias-uniandes 0.1.2-beta.6 → 0.1.2-beta.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/lib/{build/app.component.d.ts → app.component.d.ts} +4 -1
  2. package/lib/{build/app.component.js → app.component.js} +10 -2
  3. package/lib/app.component.js.map +1 -0
  4. package/lib/{build/app.component.metadata.json → app.component.metadata.json} +1 -1
  5. package/lib/{build/app.module.js → app.module.js} +14 -10
  6. package/lib/app.module.js.map +1 -0
  7. package/lib/app.module.metadata.json +1 -0
  8. package/lib/auth-monitorias/auth-monitorias.module.d.ts +5 -0
  9. package/lib/{build/auth-monitorias → auth-monitorias}/auth-monitorias.module.js +17 -3
  10. package/lib/auth-monitorias/auth-monitorias.module.js.map +1 -0
  11. package/lib/auth-monitorias/auth-monitorias.module.metadata.json +1 -0
  12. package/lib/auth-monitorias/common/SearchPersonParams.model.d.ts +11 -0
  13. package/lib/auth-monitorias/common/SearchPersonParams.model.js +9 -0
  14. package/lib/auth-monitorias/common/SearchPersonParams.model.js.map +1 -0
  15. package/lib/auth-monitorias/common/SearchPersonParams.model.metadata.json +1 -0
  16. package/lib/auth-monitorias/common/constants.js.map +1 -0
  17. package/lib/auth-monitorias/common/currentUser.model.js.map +1 -0
  18. package/lib/auth-monitorias/common/enviromentOptions.d.ts +7 -0
  19. package/lib/auth-monitorias/common/enviromentOptions.js +9 -0
  20. package/lib/auth-monitorias/common/enviromentOptions.js.map +1 -0
  21. package/lib/auth-monitorias/common/enviromentOptions.metadata.json +1 -0
  22. package/lib/auth-monitorias/common/login.model.js.map +1 -0
  23. package/lib/auth-monitorias/common/mock.js.map +1 -0
  24. package/lib/auth-monitorias/common/person.model.d.ts +13 -0
  25. package/lib/auth-monitorias/common/person.model.js +9 -0
  26. package/lib/auth-monitorias/common/person.model.js.map +1 -0
  27. package/lib/auth-monitorias/common/person.model.metadata.json +1 -0
  28. package/lib/auth-monitorias/common/roles-type.enum.js.map +1 -0
  29. package/lib/auth-monitorias/common/safe.pipe.js.map +1 -0
  30. package/lib/auth-monitorias/directives/hide-for-roles.directive.js.map +1 -0
  31. package/lib/auth-monitorias/directives/read-only-for-roles.directive.js.map +1 -0
  32. package/lib/auth-monitorias/directives/show-for-roles.directive.js.map +1 -0
  33. package/lib/{build/auth-monitorias → auth-monitorias}/index.d.ts +1 -1
  34. package/lib/{build/auth-monitorias → auth-monitorias}/index.js +1 -1
  35. package/lib/auth-monitorias/index.js.map +1 -0
  36. package/lib/{build/auth-monitorias → auth-monitorias}/index.metadata.json +1 -1
  37. package/lib/auth-monitorias/interceptors/auth.interceptor.d.ts +8 -0
  38. package/lib/auth-monitorias/interceptors/auth.interceptor.js +26 -0
  39. package/lib/auth-monitorias/interceptors/auth.interceptor.js.map +1 -0
  40. package/lib/auth-monitorias/interceptors/auth.interceptor.metadata.json +1 -0
  41. package/lib/{build/auth-monitorias → auth-monitorias}/services/auth-guard.service.js +3 -1
  42. package/lib/auth-monitorias/services/auth-guard.service.js.map +1 -0
  43. package/lib/auth-monitorias/services/auth-guard.service.metadata.json +1 -0
  44. package/lib/auth-monitorias/services/auth-locator.service.d.ts +13 -0
  45. package/lib/auth-monitorias/services/auth-locator.service.js +60 -0
  46. package/lib/auth-monitorias/services/auth-locator.service.js.map +1 -0
  47. package/lib/auth-monitorias/services/auth-locator.service.metadata.json +1 -0
  48. package/lib/auth-monitorias/services/auth-resolver.service.js.map +1 -0
  49. package/lib/{build/auth-monitorias → auth-monitorias}/services/auth.service.d.ts +30 -2
  50. package/lib/{build/auth-monitorias → auth-monitorias}/services/auth.service.js +103 -8
  51. package/lib/auth-monitorias/services/auth.service.js.map +1 -0
  52. package/lib/auth-monitorias/services/auth.service.metadata.json +1 -0
  53. package/lib/constants.d.ts +2 -0
  54. package/lib/{build/constants.js → constants.js} +1 -0
  55. package/lib/constants.js.map +1 -0
  56. package/lib/{build/constants.metadata.json → constants.metadata.json} +1 -1
  57. package/lib/encryption/encryption.module.d.ts +2 -0
  58. package/lib/encryption/encryption.module.js +18 -0
  59. package/lib/encryption/encryption.module.js.map +1 -0
  60. package/lib/encryption/encryption.module.metadata.json +1 -0
  61. package/lib/encryption/index.d.ts +3 -0
  62. package/lib/encryption/index.js +9 -0
  63. package/lib/encryption/index.js.map +1 -0
  64. package/lib/encryption/index.metadata.json +1 -0
  65. package/lib/encryption/interceptors/encryption.interceptor.d.ts +12 -0
  66. package/lib/encryption/interceptors/encryption.interceptor.js +109 -0
  67. package/lib/encryption/interceptors/encryption.interceptor.js.map +1 -0
  68. package/lib/encryption/interceptors/encryption.interceptor.metadata.json +1 -0
  69. package/lib/encryption/rsa-public-key.d.ts +2 -0
  70. package/lib/encryption/rsa-public-key.js +5 -0
  71. package/lib/encryption/rsa-public-key.js.map +1 -0
  72. package/lib/encryption/rsa-public-key.metadata.json +1 -0
  73. package/lib/encryption/services/encryption.service.d.ts +13 -0
  74. package/lib/encryption/services/encryption.service.js +211 -0
  75. package/lib/encryption/services/encryption.service.js.map +1 -0
  76. package/lib/encryption/services/encryption.service.metadata.json +1 -0
  77. package/lib/index.d.ts +3 -0
  78. package/lib/{build/index.js → index.js} +2 -0
  79. package/lib/index.js.map +1 -0
  80. package/lib/index.metadata.json +1 -0
  81. package/lib/session-models-monitorias/index.d.ts +4 -0
  82. package/lib/session-models-monitorias/index.js +10 -0
  83. package/lib/session-models-monitorias/index.js.map +1 -0
  84. package/lib/session-models-monitorias/index.metadata.json +1 -0
  85. package/lib/session-models-monitorias/models/dependency.model.d.ts +10 -0
  86. package/lib/session-models-monitorias/models/dependency.model.js +9 -0
  87. package/lib/session-models-monitorias/models/dependency.model.js.map +1 -0
  88. package/lib/session-models-monitorias/models/dependency.model.metadata.json +1 -0
  89. package/lib/session-models-monitorias/models/program.model.d.ts +10 -0
  90. package/lib/session-models-monitorias/models/program.model.js +10 -0
  91. package/lib/session-models-monitorias/models/program.model.js.map +1 -0
  92. package/lib/session-models-monitorias/models/program.model.metadata.json +1 -0
  93. package/lib/session-models-monitorias/services/session-program-monitoria.service.d.ts +46 -0
  94. package/lib/session-models-monitorias/services/session-program-monitoria.service.js +161 -0
  95. package/lib/session-models-monitorias/services/session-program-monitoria.service.js.map +1 -0
  96. package/lib/session-models-monitorias/services/session-program-monitoria.service.metadata.json +1 -0
  97. package/lib/session-models-monitorias/session-models-monitorias.module.d.ts +2 -0
  98. package/lib/session-models-monitorias/session-models-monitorias.module.js +22 -0
  99. package/lib/session-models-monitorias/session-models-monitorias.module.js.map +1 -0
  100. package/lib/session-models-monitorias/session-models-monitorias.module.metadata.json +1 -0
  101. package/package.json +5 -5
  102. package/lib/build/app.component.js.map +0 -1
  103. package/lib/build/app.module.js.map +0 -1
  104. package/lib/build/app.module.metadata.json +0 -1
  105. package/lib/build/auth-monitorias/auth-monitorias.module.d.ts +0 -2
  106. package/lib/build/auth-monitorias/auth-monitorias.module.js.map +0 -1
  107. package/lib/build/auth-monitorias/auth-monitorias.module.metadata.json +0 -1
  108. package/lib/build/auth-monitorias/common/constants.js.map +0 -1
  109. package/lib/build/auth-monitorias/common/currentUser.model.js.map +0 -1
  110. package/lib/build/auth-monitorias/common/login.model.js.map +0 -1
  111. package/lib/build/auth-monitorias/common/mock.js.map +0 -1
  112. package/lib/build/auth-monitorias/common/roles-type.enum.js.map +0 -1
  113. package/lib/build/auth-monitorias/common/safe.pipe.js.map +0 -1
  114. package/lib/build/auth-monitorias/components/idlelogout/idle-logout/idle-logout.component.d.ts +0 -22
  115. package/lib/build/auth-monitorias/components/idlelogout/idle-logout/idle-logout.component.js +0 -66
  116. package/lib/build/auth-monitorias/components/idlelogout/idle-logout/idle-logout.component.js.map +0 -1
  117. package/lib/build/auth-monitorias/components/idlelogout/idle-logout/idle-logout.component.metadata.json +0 -1
  118. package/lib/build/auth-monitorias/components/idlelogout/idlelogout.module.d.ts +0 -2
  119. package/lib/build/auth-monitorias/components/idlelogout/idlelogout.module.js +0 -23
  120. package/lib/build/auth-monitorias/components/idlelogout/idlelogout.module.js.map +0 -1
  121. package/lib/build/auth-monitorias/components/idlelogout/idlelogout.module.metadata.json +0 -1
  122. package/lib/build/auth-monitorias/components/idlelogout/index.d.ts +0 -2
  123. package/lib/build/auth-monitorias/components/idlelogout/index.js +0 -8
  124. package/lib/build/auth-monitorias/components/idlelogout/index.js.map +0 -1
  125. package/lib/build/auth-monitorias/components/idlelogout/index.metadata.json +0 -1
  126. package/lib/build/auth-monitorias/directives/hide-for-roles.directive.js.map +0 -1
  127. package/lib/build/auth-monitorias/directives/read-only-for-roles.directive.js.map +0 -1
  128. package/lib/build/auth-monitorias/directives/show-for-roles.directive.js.map +0 -1
  129. package/lib/build/auth-monitorias/index.js.map +0 -1
  130. package/lib/build/auth-monitorias/services/auth-guard.service.js.map +0 -1
  131. package/lib/build/auth-monitorias/services/auth-guard.service.metadata.json +0 -1
  132. package/lib/build/auth-monitorias/services/auth-locator.service.d.ts +0 -7
  133. package/lib/build/auth-monitorias/services/auth-locator.service.js +0 -41
  134. package/lib/build/auth-monitorias/services/auth-locator.service.js.map +0 -1
  135. package/lib/build/auth-monitorias/services/auth-locator.service.metadata.json +0 -1
  136. package/lib/build/auth-monitorias/services/auth-resolver.service.js.map +0 -1
  137. package/lib/build/auth-monitorias/services/auth.service.js.map +0 -1
  138. package/lib/build/auth-monitorias/services/auth.service.metadata.json +0 -1
  139. package/lib/build/constants.d.ts +0 -1
  140. package/lib/build/constants.js.map +0 -1
  141. package/lib/build/index.d.ts +0 -1
  142. package/lib/build/index.js.map +0 -1
  143. package/lib/build/index.metadata.json +0 -1
  144. package/lib/node_modules/angular-user-idle/user-idle.config.d.ts +0 -14
  145. package/lib/node_modules/angular-user-idle/user-idle.config.js +0 -9
  146. package/lib/node_modules/angular-user-idle/user-idle.config.js.map +0 -1
  147. package/lib/node_modules/angular-user-idle/user-idle.config.metadata.json +0 -1
  148. package/lib/node_modules/angular-user-idle/user-idle.module.d.ts +0 -8
  149. package/lib/node_modules/angular-user-idle/user-idle.module.js +0 -28
  150. package/lib/node_modules/angular-user-idle/user-idle.module.js.map +0 -1
  151. package/lib/node_modules/angular-user-idle/user-idle.module.metadata.json +0 -1
  152. package/lib/node_modules/angular-user-idle/user-idle.service.d.ts +0 -72
  153. package/lib/node_modules/angular-user-idle/user-idle.service.js +0 -185
  154. package/lib/node_modules/angular-user-idle/user-idle.service.js.map +0 -1
  155. package/lib/node_modules/angular-user-idle/user-idle.service.metadata.json +0 -1
  156. /package/lib/{build/app.module.d.ts → app.module.d.ts} +0 -0
  157. /package/lib/{build/auth-monitorias → auth-monitorias}/common/constants.d.ts +0 -0
  158. /package/lib/{build/auth-monitorias → auth-monitorias}/common/constants.js +0 -0
  159. /package/lib/{build/auth-monitorias → auth-monitorias}/common/constants.metadata.json +0 -0
  160. /package/lib/{build/auth-monitorias → auth-monitorias}/common/currentUser.model.d.ts +0 -0
  161. /package/lib/{build/auth-monitorias → auth-monitorias}/common/currentUser.model.js +0 -0
  162. /package/lib/{build/auth-monitorias → auth-monitorias}/common/currentUser.model.metadata.json +0 -0
  163. /package/lib/{build/auth-monitorias → auth-monitorias}/common/login.model.d.ts +0 -0
  164. /package/lib/{build/auth-monitorias → auth-monitorias}/common/login.model.js +0 -0
  165. /package/lib/{build/auth-monitorias → auth-monitorias}/common/login.model.metadata.json +0 -0
  166. /package/lib/{build/auth-monitorias → auth-monitorias}/common/mock.d.ts +0 -0
  167. /package/lib/{build/auth-monitorias → auth-monitorias}/common/mock.js +0 -0
  168. /package/lib/{build/auth-monitorias → auth-monitorias}/common/mock.metadata.json +0 -0
  169. /package/lib/{build/auth-monitorias → auth-monitorias}/common/roles-type.enum.d.ts +0 -0
  170. /package/lib/{build/auth-monitorias → auth-monitorias}/common/roles-type.enum.js +0 -0
  171. /package/lib/{build/auth-monitorias → auth-monitorias}/common/roles-type.enum.metadata.json +0 -0
  172. /package/lib/{build/auth-monitorias → auth-monitorias}/common/safe.pipe.d.ts +0 -0
  173. /package/lib/{build/auth-monitorias → auth-monitorias}/common/safe.pipe.js +0 -0
  174. /package/lib/{build/auth-monitorias → auth-monitorias}/common/safe.pipe.metadata.json +0 -0
  175. /package/lib/{build/auth-monitorias → auth-monitorias}/directives/hide-for-roles.directive.d.ts +0 -0
  176. /package/lib/{build/auth-monitorias → auth-monitorias}/directives/hide-for-roles.directive.js +0 -0
  177. /package/lib/{build/auth-monitorias → auth-monitorias}/directives/hide-for-roles.directive.metadata.json +0 -0
  178. /package/lib/{build/auth-monitorias → auth-monitorias}/directives/read-only-for-roles.directive.d.ts +0 -0
  179. /package/lib/{build/auth-monitorias → auth-monitorias}/directives/read-only-for-roles.directive.js +0 -0
  180. /package/lib/{build/auth-monitorias → auth-monitorias}/directives/read-only-for-roles.directive.metadata.json +0 -0
  181. /package/lib/{build/auth-monitorias → auth-monitorias}/directives/show-for-roles.directive.d.ts +0 -0
  182. /package/lib/{build/auth-monitorias → auth-monitorias}/directives/show-for-roles.directive.js +0 -0
  183. /package/lib/{build/auth-monitorias → auth-monitorias}/directives/show-for-roles.directive.metadata.json +0 -0
  184. /package/lib/{build/auth-monitorias → auth-monitorias}/services/auth-guard.service.d.ts +0 -0
  185. /package/lib/{build/auth-monitorias → auth-monitorias}/services/auth-resolver.service.d.ts +0 -0
  186. /package/lib/{build/auth-monitorias → auth-monitorias}/services/auth-resolver.service.js +0 -0
  187. /package/lib/{build/auth-monitorias → auth-monitorias}/services/auth-resolver.service.metadata.json +0 -0
@@ -1,11 +1,14 @@
1
1
  import { FormGroup } from '@angular/forms';
2
2
  import { AuthService } from './auth-monitorias/services/auth.service';
3
3
  import { CurrentUserModel } from './auth-monitorias/common/currentUser.model';
4
+ import { HttpClient } from '@angular/common/http';
4
5
  export declare class AppComponent {
6
+ private http;
5
7
  private authService;
6
8
  title: string;
7
9
  currentRoles: string[];
8
10
  currentUser: CurrentUserModel;
9
- constructor(authService: AuthService);
11
+ private headers;
12
+ constructor(http: HttpClient, authService: AuthService);
10
13
  exampleForm: FormGroup;
11
14
  }
@@ -3,30 +3,38 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var core_1 = require("@angular/core");
4
4
  var forms_1 = require("@angular/forms");
5
5
  var auth_service_1 = require("./auth-monitorias/services/auth.service");
6
+ var http_1 = require("@angular/common/http");
6
7
  var AppComponent = /** @class */ (function () {
7
- function AppComponent(authService) {
8
+ function AppComponent(http, authService) {
8
9
  var _this = this;
10
+ this.http = http;
9
11
  this.authService = authService;
10
12
  this.title = 'Monitorias-Auth';
11
13
  this.exampleForm = new forms_1.FormGroup({
12
14
  name: new forms_1.FormControl()
13
15
  });
16
+ this.headers = new http_1.HttpHeaders({ 'Content-Type': 'application/json', 'Accept': 'application/json, text/plain' });
14
17
  this.authService.doLogin({ usr: 'userTest', pwd: 'passdemo' }).subscribe(function (loginData) {
15
18
  console.log("Login " + loginData.userName);
16
19
  _this.currentUser = loginData;
17
20
  _this.currentRoles = _this.currentUser.roles;
18
21
  _this.authService.saveCurrentUserInLS(_this.currentUser);
19
22
  });
23
+ this.http.post("/core/services/sections/searchSections", { "program": 1618, "period": 148 }, { headers: this.headers })
24
+ .subscribe(function (result) {
25
+ console.log(" *************** --- RESUTADO --- *************** ", result);
26
+ });
20
27
  }
21
28
  AppComponent.decorators = [
22
29
  { type: core_1.Component, args: [{
23
30
  selector: 'app-root',
24
- template: "\n <!--The content below is only a placeholder and can be replaced.-->\n <div style=\"text-align:center\">\n <h1>\n Welcome to {{ title }}!\n </h1>\n <img width=\"300\" alt=\"Angular Logo\" src=\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg==\">\n </div>\n <div class=\"container\">\n <h2>Test Directive</h2> \n <ul>\n <!-- <li *acHideFor=\"roles\" >Esto no debe salir si soy <i>profesor</i> o <i>estudiante</i></li> -->\n <li *acShowFor=\"['COORDINATOR', 'PROFESSOR']\" > Esto es visible para un usuario con Rol <i>Coordinador</i> o <i>Professor</i></li>\n <li *acShowFor=\"['ADMINISTRATOR']\" > Esto es visible para un usuario con Rol <i>Administrador</i></li>\n <li *acShowFor=\"['PROFESSOR']\" > Esto es visible para un usuario con Rol <i>Profesor</i></li>\n <li *acHideFor=\"['ADMINISTRATOR']\" > Esto NO es visible para un usuario con Rol <i>Administrador</i></li>\n </ul>\n\n <h3>ReadOnly</h3>\n <form [formGroup]=\"exampleForm\">\n <div class=\"form-group\">\n <label class=\"center-block\">Name: (Sólo de lectura si es profesor)\n <input [acReadOnly]=\"['PROFESSOR']\" class=\"form-control\" formControlName=\"name\">\n </label>\n </div>\n </form>\n \n <pre style=\"padding: 16px 32px;color: #5c707a; white-space: pre-wrap; background:#f5f6f7\">\n <h4>Current User</h4>\n {{currentUser | json}}\n </pre>\n\n <idle-logout>\n </idle-logout>\n \n\n </div>\n ",
31
+ template: "\n <!--The content below is only a placeholder and can be replaced.-->\n <div style=\"text-align:center\">\n <h1>\n Welcome to {{ title }}!\n </h1>\n <img width=\"300\" alt=\"Angular Logo\" src=\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg==\">\n </div>\n <div class=\"container\">\n <h2>Test Directive</h2> \n <ul>\n <!-- <li *acHideFor=\"roles\" >Esto no debe salir si soy <i>profesor</i> o <i>estudiante</i></li> -->\n <li *acShowFor=\"['COORDINATOR', 'PROFESSOR']\" > Esto es visible para un usuario con Rol <i>Coordinador</i> o <i>Professor</i></li>\n <li *acShowFor=\"['ADMINISTRATOR']\" > Esto es visible para un usuario con Rol <i>Administrador</i></li>\n <li *acShowFor=\"['PROFESSOR']\" > Esto es visible para un usuario con Rol <i>Profesor</i></li>\n <li *acHideFor=\"['ADMINISTRATOR']\" > Esto NO es visible para un usuario con Rol <i>Administrador</i></li>\n </ul>\n\n <h3>ReadOnly</h3>\n <form [formGroup]=\"exampleForm\">\n <div class=\"form-group\">\n <label class=\"center-block\">Name: (Sólo de lectura si es profesor)\n <input [acReadOnly]=\"['PROFESSOR']\" class=\"form-control\" formControlName=\"name\">\n </label>\n </div>\n </form>\n \n <pre style=\"padding: 16px 32px;color: #5c707a; white-space: pre-wrap; background:#f5f6f7\">\n <h4>Current User</h4>\n {{currentUser | json}}\n </pre>\n </div>\n ",
25
32
  styles: ["\n\n "]
26
33
  },] },
27
34
  ];
28
35
  /** @nocollapse */
29
36
  AppComponent.ctorParameters = function () { return [
37
+ { type: http_1.HttpClient, },
30
38
  { type: auth_service_1.AuthService, },
31
39
  ]; };
32
40
  return AppComponent;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.component.js","sourceRoot":"","sources":["../build/app.component.ts"],"names":[],"mappings":";;AAAA,sCAA2D;AAC3D,wCAAwD;AACxD,wEAAsE;AAEtE,6CAA+D;;IAc7D,sBACU,IAAgB,EAChB,WAAwB;QAFlC,iBAiBC;QAhBS,SAAI,GAAJ,IAAI,CAAY;QAChB,gBAAW,GAAX,WAAW,CAAa;qBAR1B,iBAAiB;2BAyBX,IAAI,iBAAS,CAAC;YAC1B,IAAI,EAAE,IAAI,mBAAW,EAAE;SACxB,CAAC;QAjBA,IAAI,CAAC,OAAO,GAAG,IAAI,kBAAW,CAAC,EAAE,cAAc,EAAE,kBAAkB,EAAE,QAAQ,EAAE,8BAA8B,EAAE,CAAC,CAAC;QAEjH,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,CAAC,CAAC,SAAS,CAAC,UAAA,SAAS;YAChF,OAAO,CAAC,GAAG,CAAC,WAAS,SAAS,CAAC,QAAU,CAAC,CAAC;YAC3C,KAAI,CAAC,WAAW,GAAG,SAAS,CAAC;YAC7B,KAAI,CAAC,YAAY,GAAG,KAAI,CAAC,WAAW,CAAC,KAAK,CAAC;YAC3C,KAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAI,CAAC,WAAW,CAAC,CAAC;SACxD,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC;aACpH,SAAS,CAAC,UAAA,MAAM;YACf,OAAO,CAAC,GAAG,CAAC,oDAAoD,EAAE,MAAM,CAAC,CAAC;SAC3E,CAAC,CAAC;KACN;;gBA7BF,gBAAS,SAAC;oBACT,QAAQ,EAAE,UAAU;oBACpB,QAAQ,EAAE,s7DAAs7D;oBACh8D,MAAM,EAAE,CAAC,QAAQ,CAAC;iBACnB;;;;gBANQ,iBAAU;gBAFV,0BAAW;;uBAFpB;;AAWa,oCAAY"}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"AppComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"app-root","template":"\n <!--The content below is only a placeholder and can be replaced.-->\n <div style=\"text-align:center\">\n <h1>\n Welcome to {{ title }}!\n </h1>\n <img width=\"300\" alt=\"Angular Logo\" src=\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg==\">\n </div>\n <div class=\"container\">\n <h2>Test Directive</h2> \n <ul>\n <!-- <li *acHideFor=\"roles\" >Esto no debe salir si soy <i>profesor</i> o <i>estudiante</i></li> -->\n <li *acShowFor=\"['COORDINATOR', 'PROFESSOR']\" > Esto es visible para un usuario con Rol <i>Coordinador</i> o <i>Professor</i></li>\n <li *acShowFor=\"['ADMINISTRATOR']\" > Esto es visible para un usuario con Rol <i>Administrador</i></li>\n <li *acShowFor=\"['PROFESSOR']\" > Esto es visible para un usuario con Rol <i>Profesor</i></li>\n <li *acHideFor=\"['ADMINISTRATOR']\" > Esto NO es visible para un usuario con Rol <i>Administrador</i></li>\n </ul>\n\n <h3>ReadOnly</h3>\n <form [formGroup]=\"exampleForm\">\n <div class=\"form-group\">\n <label class=\"center-block\">Name: (Sólo de lectura si es profesor)\n <input [acReadOnly]=\"['PROFESSOR']\" class=\"form-control\" formControlName=\"name\">\n </label>\n </div>\n </form>\n \n <pre style=\"padding: 16px 32px;color: #5c707a; white-space: pre-wrap; background:#f5f6f7\">\n <h4>Current User</h4>\n {{currentUser | json}}\n </pre>\n\n <idle-logout>\n </idle-logout>\n \n\n </div>\n ","styles":["\n\n "]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./auth-monitorias/services/auth.service","name":"AuthService","line":16,"character":35}]}]}}}}]
1
+ [{"__symbolic":"module","version":4,"metadata":{"AppComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"app-root","template":"\n <!--The content below is only a placeholder and can be replaced.-->\n <div style=\"text-align:center\">\n <h1>\n Welcome to {{ title }}!\n </h1>\n <img width=\"300\" alt=\"Angular Logo\" src=\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg==\">\n </div>\n <div class=\"container\">\n <h2>Test Directive</h2> \n <ul>\n <!-- <li *acHideFor=\"roles\" >Esto no debe salir si soy <i>profesor</i> o <i>estudiante</i></li> -->\n <li *acShowFor=\"['COORDINATOR', 'PROFESSOR']\" > Esto es visible para un usuario con Rol <i>Coordinador</i> o <i>Professor</i></li>\n <li *acShowFor=\"['ADMINISTRATOR']\" > Esto es visible para un usuario con Rol <i>Administrador</i></li>\n <li *acShowFor=\"['PROFESSOR']\" > Esto es visible para un usuario con Rol <i>Profesor</i></li>\n <li *acHideFor=\"['ADMINISTRATOR']\" > Esto NO es visible para un usuario con Rol <i>Administrador</i></li>\n </ul>\n\n <h3>ReadOnly</h3>\n <form [formGroup]=\"exampleForm\">\n <div class=\"form-group\">\n <label class=\"center-block\">Name: (Sólo de lectura si es profesor)\n <input [acReadOnly]=\"['PROFESSOR']\" class=\"form-control\" formControlName=\"name\">\n </label>\n </div>\n </form>\n \n <pre style=\"padding: 16px 32px;color: #5c707a; white-space: pre-wrap; background:#f5f6f7\">\n <h4>Current User</h4>\n {{currentUser | json}}\n </pre>\n </div>\n ","styles":["\n\n "]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":19,"character":18},{"__symbolic":"reference","module":"./auth-monitorias/services/auth.service","name":"AuthService","line":20,"character":25}]}]}}}}]
@@ -5,11 +5,9 @@ var core_1 = require("@angular/core");
5
5
  var app_component_1 = require("./app.component");
6
6
  var http_1 = require("@angular/common/http");
7
7
  var auth_monitorias_1 = require("./auth-monitorias");
8
+ var session_models_monitorias_1 = require("./session-models-monitorias");
8
9
  var forms_1 = require("@angular/forms");
9
- var ngx_bootstrap_1 = require("ngx-bootstrap");
10
- var angular_user_idle_1 = require("angular-user-idle");
11
- var idlelogout_module_1 = require("./auth-monitorias/components/idlelogout/idlelogout.module");
12
- var idle_logout_component_1 = require("./auth-monitorias/components/idlelogout/idle-logout/idle-logout.component");
10
+ var auth_interceptor_1 = require("./auth-monitorias/interceptors/auth.interceptor");
13
11
  var AppModule = /** @class */ (function () {
14
12
  function AppModule() {
15
13
  }
@@ -17,19 +15,25 @@ var AppModule = /** @class */ (function () {
17
15
  { type: core_1.NgModule, args: [{
18
16
  declarations: [
19
17
  app_component_1.AppComponent,
20
- idle_logout_component_1.IdleLogoutComponent
21
18
  ],
22
19
  imports: [
23
20
  platform_browser_1.BrowserModule,
24
21
  http_1.HttpClientModule,
25
22
  forms_1.FormsModule,
26
23
  forms_1.ReactiveFormsModule,
27
- auth_monitorias_1.AuthMonitoriasModule,
28
- idlelogout_module_1.IdlelogoutModule,
29
- ngx_bootstrap_1.ModalModule.forRoot(),
30
- angular_user_idle_1.UserIdleModule.forRoot({ idle: 2, timeout: 10, ping: 120 })
24
+ session_models_monitorias_1.SessionModelsMonitoriasModule,
25
+ auth_monitorias_1.AuthMonitoriasModule.forRoot({
26
+ production: false,
27
+ executionEnvironment: "development",
28
+ appUrlApi: "http://localhost:8080",
29
+ user: "m-concha",
30
+ pwd: "fdsfsdfsfsdf"
31
+ })
32
+ ],
33
+ exports: [],
34
+ providers: [
35
+ { provide: http_1.HTTP_INTERCEPTORS, useClass: auth_interceptor_1.AuthInterceptor, multi: true },
31
36
  ],
32
- exports: [idle_logout_component_1.IdleLogoutComponent],
33
37
  bootstrap: [app_component_1.AppComponent]
34
38
  },] },
35
39
  ];
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.module.js","sourceRoot":"","sources":["../build/app.module.ts"],"names":[],"mappings":";;AAAA,8DAA0D;AAC1D,sCAAyC;AACzC,iDAA+C;AAC/C,6CAA4E;AAC5E,qDAAyD;AACzD,yEAA4E;AAC5E,wCAAkE;AAClE,oFAAkF;;;;;gBAEjF,eAAQ,SAAC;oBACR,YAAY,EAAE;wBACZ,4BAAY;qBACb;oBACD,OAAO,EAAE;wBACP,gCAAa;wBACb,uBAAgB;wBAChB,mBAAW;wBACX,2BAAmB;wBACnB,yDAA6B;wBAC7B,sCAAoB,CAAC,OAAO,CAAC;4BAC3B,UAAU,EAAE,KAAK;4BACjB,oBAAoB,EAAE,aAAa;4BACnC,SAAS,EAAE,uBAAuB;4BAClC,IAAI,EAAE,UAAU;4BAChB,GAAG,EAAE,cAAc;yBACpB,CAAC;qBACH;oBACD,OAAO,EAAC,EAAE;oBACV,SAAS,EAAE;wBACT,EAAE,OAAO,EAAE,wBAAiB,EAAE,QAAQ,EAAE,kCAAe,EAAE,KAAK,EAAE,IAAI,EAAE;qBACvE;oBACD,SAAS,EAAE,CAAC,4BAAY,CAAC;iBAC1B;;oBAhCD;;AAiCa,8BAAS"}
@@ -0,0 +1 @@
1
+ [{"__symbolic":"module","version":4,"metadata":{"AppModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./app.component","name":"AppComponent","line":11,"character":4}],"imports":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"BrowserModule","line":14,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":15,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":16,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"ReactiveFormsModule","line":17,"character":4},{"__symbolic":"reference","module":"./session-models-monitorias","name":"SessionModelsMonitoriasModule","line":18,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"./auth-monitorias","name":"AuthMonitoriasModule","line":19,"character":4},"member":"forRoot"},"arguments":[{"production":false,"executionEnvironment":"development","appUrlApi":"http://localhost:8080","user":"m-concha","pwd":"fdsfsdfsfsdf"}]}],"exports":[],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/common/http","name":"HTTP_INTERCEPTORS","line":29,"character":15},"useClass":{"__symbolic":"reference","module":"./auth-monitorias/interceptors/auth.interceptor","name":"AuthInterceptor","line":29,"character":44},"multi":true}],"bootstrap":[{"__symbolic":"reference","module":"./app.component","name":"AppComponent","line":31,"character":14}]}]}]}}}]
@@ -0,0 +1,5 @@
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { EnviromentOptions } from './common/enviromentOptions';
3
+ export declare class AuthMonitoriasModule {
4
+ static forRoot(options: EnviromentOptions): ModuleWithProviders;
5
+ }
@@ -10,10 +10,25 @@ var auth_locator_service_1 = require("./services/auth-locator.service");
10
10
  var auth_guard_service_1 = require("./services/auth-guard.service");
11
11
  var auth_resolver_service_1 = require("./services/auth-resolver.service");
12
12
  var safe_pipe_1 = require("./common/safe.pipe");
13
- var idle_logout_component_1 = require("./components/idlelogout/idle-logout/idle-logout.component");
13
+ var enviromentOptions_1 = require("./common/enviromentOptions");
14
14
  var AuthMonitoriasModule = /** @class */ (function () {
15
15
  function AuthMonitoriasModule() {
16
16
  }
17
+ // I setup the module providers for the root application.
18
+ // I setup the module providers for the root application.
19
+ AuthMonitoriasModule.forRoot =
20
+ // I setup the module providers for the root application.
21
+ function (options) {
22
+ return ({
23
+ ngModule: AuthMonitoriasModule,
24
+ providers: [
25
+ {
26
+ provide: enviromentOptions_1.EnviromentOptions,
27
+ useValue: options
28
+ }
29
+ ]
30
+ });
31
+ };
17
32
  AuthMonitoriasModule.decorators = [
18
33
  { type: core_1.NgModule, args: [{
19
34
  imports: [
@@ -24,10 +39,9 @@ var AuthMonitoriasModule = /** @class */ (function () {
24
39
  read_only_for_roles_directive_1.ReadOnlyForRolesDirective,
25
40
  hide_for_roles_directive_1.HideForRolesDirective,
26
41
  safe_pipe_1.SafePipe,
27
- idle_logout_component_1.IdleLogoutComponent
28
42
  ],
29
43
  providers: [auth_service_1.AuthService, auth_locator_service_1.AuthLocatorService, auth_guard_service_1.AuthGuardService, auth_resolver_service_1.AuthResolverService],
30
- exports: [show_for_roles_directive_1.ShowForRolesDirective, read_only_for_roles_directive_1.ReadOnlyForRolesDirective, hide_for_roles_directive_1.HideForRolesDirective, safe_pipe_1.SafePipe, idle_logout_component_1.IdleLogoutComponent]
44
+ exports: [show_for_roles_directive_1.ShowForRolesDirective, read_only_for_roles_directive_1.ReadOnlyForRolesDirective, hide_for_roles_directive_1.HideForRolesDirective, safe_pipe_1.SafePipe],
31
45
  },] },
32
46
  ];
33
47
  return AuthMonitoriasModule;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-monitorias.module.js","sourceRoot":"","sources":["../../build/auth-monitorias/auth-monitorias.module.ts"],"names":[],"mappings":";;AAAA,sCAA8E;AAC9E,0CAA+C;AAC/C,kFAA6E;AAC7E,wDAAsD;AACtD,kFAA8E;AAC9E,4FAAuF;AACvF,wEAAqE;AACrE,oEAAiE;AACjE,0EAAuE;AACvE,gDAA8C;AAC9C,gEAA+D;;;;IAkB7D,yDAAyD;;IAClD,4BAAO;;IAAd,UAAe,OAA0B;QACvC,MAAM,CAAC,CAAC;YACN,QAAQ,EAAE,oBAAoB;YAC9B,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,qCAAiB;oBAC1B,QAAQ,EAAE,OAAO;iBAClB;aACF;SACF,CAAC,CAAC;KAEJ;;gBA3BF,eAAQ,SAAC;oBACR,OAAO,EAAE;wBACP,qBAAY;qBACb;oBACD,YAAY,EAAE;wBACZ,gDAAqB;wBACrB,yDAAyB;wBACzB,gDAAqB;wBACrB,oBAAQ;qBACT;oBACD,SAAS,EAAE,CAAC,0BAAW,EAAE,yCAAkB,EAAE,qCAAgB,EAAE,2CAAmB,CAAC;oBACnF,OAAO,EAAE,CAAC,gDAAqB,EAAE,yDAAyB,EAAE,gDAAqB,EAAE,oBAAQ,CAAC;iBAC7F;;+BAzBD;;AA0Ba,oDAAoB"}
@@ -0,0 +1 @@
1
+ [{"__symbolic":"module","version":4,"metadata":{"AuthMonitoriasModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":13,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":15,"character":4}],"declarations":[{"__symbolic":"reference","module":"./directives/show-for-roles.directive","name":"ShowForRolesDirective","line":18,"character":4},{"__symbolic":"reference","module":"./directives/read-only-for-roles.directive","name":"ReadOnlyForRolesDirective","line":19,"character":4},{"__symbolic":"reference","module":"./directives/hide-for-roles.directive","name":"HideForRolesDirective","line":20,"character":4},{"__symbolic":"reference","module":"./common/safe.pipe","name":"SafePipe","line":21,"character":4}],"providers":[{"__symbolic":"reference","module":"./services/auth.service","name":"AuthService","line":23,"character":14},{"__symbolic":"reference","module":"./services/auth-locator.service","name":"AuthLocatorService","line":23,"character":27},{"__symbolic":"reference","module":"./services/auth-guard.service","name":"AuthGuardService","line":23,"character":47},{"__symbolic":"reference","module":"./services/auth-resolver.service","name":"AuthResolverService","line":23,"character":65}],"exports":[{"__symbolic":"reference","module":"./directives/show-for-roles.directive","name":"ShowForRolesDirective","line":24,"character":12},{"__symbolic":"reference","module":"./directives/read-only-for-roles.directive","name":"ReadOnlyForRolesDirective","line":24,"character":35},{"__symbolic":"reference","module":"./directives/hide-for-roles.directive","name":"HideForRolesDirective","line":24,"character":62},{"__symbolic":"reference","module":"./common/safe.pipe","name":"SafePipe","line":24,"character":85}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["options"],"value":{"ngModule":{"__symbolic":"reference","name":"AuthMonitoriasModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./common/enviromentOptions","name":"EnviromentOptions","line":34,"character":19},"useValue":{"__symbolic":"reference","name":"options"}}]}}}}}}]
@@ -0,0 +1,11 @@
1
+ export declare class SearchPersonParamsModel {
2
+ idPerson: number;
3
+ email: string;
4
+ name: string;
5
+ nameReference: string;
6
+ documentNumber: string;
7
+ username: string;
8
+ personTypes: any[];
9
+ address: string;
10
+ constructor();
11
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var SearchPersonParamsModel = /** @class */ (function () {
4
+ function SearchPersonParamsModel() {
5
+ }
6
+ return SearchPersonParamsModel;
7
+ }());
8
+ exports.SearchPersonParamsModel = SearchPersonParamsModel;
9
+ //# sourceMappingURL=SearchPersonParams.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchPersonParams.model.js","sourceRoot":"","sources":["../../../build/auth-monitorias/common/SearchPersonParams.model.ts"],"names":[],"mappings":";;AAAA,IAAA;IAWI;KAAiB;kCAXrB;IAYC,CAAA;AAZY,0DAAuB"}
@@ -0,0 +1 @@
1
+ [{"__symbolic":"module","version":4,"metadata":{"SearchPersonParamsModel":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor"}]}}}}]
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../build/auth-monitorias/common/constants.ts"],"names":[],"mappings":";;AAAa,QAAA,QAAQ,GAAW,iEAAiE;AACpF,QAAA,QAAQ,GAAW,gDAAgD;AACnE,QAAA,cAAc,GAAW,aAAa"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currentUser.model.js","sourceRoot":"","sources":["../../../build/auth-monitorias/common/currentUser.model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export declare class EnviromentOptions {
2
+ production: boolean;
3
+ executionEnvironment: string;
4
+ appUrlApi: string;
5
+ user: string;
6
+ pwd: string;
7
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var EnviromentOptions = /** @class */ (function () {
4
+ function EnviromentOptions() {
5
+ }
6
+ return EnviromentOptions;
7
+ }());
8
+ exports.EnviromentOptions = EnviromentOptions;
9
+ //# sourceMappingURL=enviromentOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enviromentOptions.js","sourceRoot":"","sources":["../../../build/auth-monitorias/common/enviromentOptions.ts"],"names":[],"mappings":";;AAAA,IAAA;;;4BAAA;IAOC,CAAA;AAPY,8CAAiB"}
@@ -0,0 +1 @@
1
+ [{"__symbolic":"module","version":4,"metadata":{"EnviromentOptions":{"__symbolic":"class"}}}]
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.model.js","sourceRoot":"","sources":["../../../build/auth-monitorias/common/login.model.ts"],"names":[],"mappings":";;AAAA,IAAA;IAII;KAAiB;qBAJrB;IAKC,CAAA;AALY,gCAAU"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mock.js","sourceRoot":"","sources":["../../../build/auth-monitorias/common/mock.ts"],"names":[],"mappings":";;AAEa,QAAA,YAAY,GAAQ;IAC7B,QAAQ,EAAG,cAAc;IACzB,KAAK,EAAE,CAAC,WAAW,EAAE,oBAAoB,CAAC;CAC7C"}
@@ -0,0 +1,13 @@
1
+ export declare class PersonModel {
2
+ id: number;
3
+ lastName: string;
4
+ name: string;
5
+ documentType: string;
6
+ documentNumber: number;
7
+ username: string;
8
+ types: any[];
9
+ completeName: string;
10
+ address: string;
11
+ photoFile: string;
12
+ constructor();
13
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var PersonModel = /** @class */ (function () {
4
+ function PersonModel() {
5
+ }
6
+ return PersonModel;
7
+ }());
8
+ exports.PersonModel = PersonModel;
9
+ //# sourceMappingURL=person.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person.model.js","sourceRoot":"","sources":["../../../build/auth-monitorias/common/person.model.ts"],"names":[],"mappings":";;AAAA,IAAA;IAaI;KAAiB;sBAbrB;IAeC,CAAA;AAfY,kCAAW"}
@@ -0,0 +1 @@
1
+ [{"__symbolic":"module","version":4,"metadata":{"PersonModel":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor"}]}}}}]
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles-type.enum.js","sourceRoot":"","sources":["../../../build/auth-monitorias/common/roles-type.enum.ts"],"names":[],"mappings":";;AAEA,IAAY,SAOX;AAPD,WAAY,SAAS;IAEjB,2DAAa,CAAA;IAChB,mDAAS,CAAA;IACT,uDAAW,CAAA;IACX,+CAAO,CAAA;IACP,2EAAqB,CAAA;GANV,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAOpB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"safe.pipe.js","sourceRoot":"","sources":["../../../build/auth-monitorias/common/safe.pipe.ts"],"names":[],"mappings":";;AAAA,8DAA0E;AAC1E,sCAAoD;;IAKlD,kBAAoB,SAAuB;QAAvB,cAAS,GAAT,SAAS,CAAc;KAAK;IAChD,4BAAS,GAAT,UAAU,GAAG;QACX,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,GAAG,CAAC,CAAC;KAC3D;;gBALF,WAAI,SAAC,EAAE,IAAI,EAAE,MAAM,EAAE;;;;gBAJb,+BAAY;;mBAArB;;AAKa,4BAAQ"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hide-for-roles.directive.js","sourceRoot":"","sources":["../../../build/auth-monitorias/directives/hide-for-roles.directive.ts"],"names":[],"mappings":";;AAAA,sCAA0G;AAC1G,yDAAuD;;IAerD,+BAAoB,WAA6B,EAAS,aAA+B,EACrE,EAAc,EAAU,WAAwB;QADpE,iBAUG;QAViB,gBAAW,GAAX,WAAW,CAAkB;QAAS,kBAAa,GAAb,aAAa,CAAkB;QACrE,OAAE,GAAF,EAAE,CAAY;QAAU,gBAAW,GAAX,WAAW,CAAa;0BANrC,EAAE;uBAEf,KAAK;QAMX,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,SAAS,CAAE,UAAA,WAAW;YACtD,EAAE,CAAA,CAAC,WAAW,CAAC,CAAA,CAAC;gBACd,KAAI,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;gBAC/B,KAAI,CAAC,UAAU,EAAE,CAAC;aACnB;SACJ,CAAC,CAAA;KAEX;0BAIU,4CAAS;uBAAC,UAAoB;YACzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;YAC7B,IAAI,CAAC,UAAU,EAAE,CAAC;;;;;IAGZ,0CAAU,GAAlB;QACE,EAAE,CAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,WAAW,EAAE,EAAjB,CAAiB,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;SAC1H;KACF;IAEO,2CAAW,GAAnB,UAAoB,KAAc;QAChC,EAAE,CAAA,CAAC,CAAC,KAAK,CAAC,CAAA,CAAC;YACT,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;YAC3B,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACxD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;SACrB;QAAA,IAAI,CAAA,CAAC;YACJ,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;YAC3B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;SACtB;KACF;;gBA7CF,gBAAS,SAAC;oBACT,QAAQ,EAAE,aAAa;iBACxB;;;;gBAPoD,kBAAW;gBAAE,uBAAgB;gBAA9D,iBAAU;gBACrB,0BAAW;;;8BA6BjB,YAAK;;gCA9BR;;AAQa,sDAAqB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-only-for-roles.directive.js","sourceRoot":"","sources":["../../../build/auth-monitorias/directives/read-only-for-roles.directive.ts"],"names":[],"mappings":";;AAAA,sCAA8F;AAC9F,wCAA2C;AAC3C,yDAAuD;;IAgBnD,mCAAoB,EAAc,EAAU,OAAmB,EAAU,WAAwB;QAA7E,OAAE,GAAF,EAAE,CAAY;QAAU,YAAO,GAAP,OAAO,CAAY;QAAU,gBAAW,GAAX,WAAW,CAAa;uBAPrE,EAAE;QAQ1B,IAAI,CAAC,eAAe,EAAE,CAAC;KAC1B;0BAPY,iDAAU;uBAAC,OAAiB;YACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,UAAU,EAAE,CAAC;;;;;IAOtB,4CAAQ,GAAR;QAAA,iBAOC;QANG,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,SAAS,CAAE,UAAA,WAAW;YACtD,EAAE,CAAA,CAAC,WAAW,CAAC,CAAA,CAAC;gBACZ,KAAI,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;gBAC/B,KAAI,CAAC,UAAU,EAAE,CAAC;aACrB;SACJ,CAAC,CAAA;KACL;IAGO,8CAAU,GAAlB;QACI,EAAE,CAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAC;YACX,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,WAAW,EAAE,EAAjB,CAAiB,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;SAC/I;KACJ;IAEO,kDAAc,GAAtB,UAAuB,KAAc;QACjC,EAAE,CAAA,CAAC,KAAK,CAAC,CAAA,CAAC;YACN,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;SAClC;QAAA,IAAI,CAAA,CAAC;YACF,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;SACjC;KACJ;IAEO,mDAAe,GAAvB;QACI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC;KACjD;;gBA5CN,gBAAS,SAAC;oBACT,QAAQ,EAAE,cAAc;iBACzB;;;;;;;gBANmB,iBAAU;gBACrB,iBAAS;gBACT,0BAAW;;;+BAWf,YAAK;;oCAbV;;AAOa,8DAAyB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"show-for-roles.directive.js","sourceRoot":"","sources":["../../../build/auth-monitorias/directives/show-for-roles.directive.ts"],"names":[],"mappings":";;AAAA,sCAA0G;AAC1G,yDAAuD;;IAOrD,+BAAoB,WAA6B,EAAS,aAA+B,EACrE,EAAc,EAAU,WAAwB;QADpE,iBASC;QATmB,gBAAW,GAAX,WAAW,CAAkB;QAAS,kBAAa,GAAb,aAAa,CAAkB;QACrE,OAAE,GAAF,EAAE,CAAY;QAAU,gBAAW,GAAX,WAAW,CAAa;0BASrC,EAAE;uBAEf,KAAK;QAVT,IAAI,CAAC,eAAe,EAAE,CAAC;QACvB,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,SAAS,CAAE,UAAA,WAAW;YACxD,EAAE,CAAA,CAAC,WAAW,CAAC,CAAA,CAAC;gBACd,KAAI,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;gBAC/B,KAAI,CAAC,iBAAiB,EAAE,CAAC;aAC1B;SACJ,CAAC,CAAA;KACb;0BAMY,4CAAS;uBAAC,UAAoB;YACzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;YAC7B,IAAI,CAAC,iBAAiB,EAAE,CAAC;;;;;IAGnB,iDAAiB,GAAzB;QACE,EAAE,CAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAC;YACb,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,WAAW,EAAE,EAAjB,CAAiB,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;SAC5H;KACF;IAEO,2CAAW,GAAnB,UAAoB,KAAc;QAChC,EAAE,CAAA,CAAC,KAAK,CAAC,CAAA,CAAC;YACR,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;YAC3B,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACxD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;SACrB;QAAA,IAAI,CAAA,CAAC;YACJ,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;YAC3B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;SACtB;KACF;IAEO,+CAAe,GAAvB;QACE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC;KACjD;;gBA5CF,gBAAS,SAAC;oBACT,QAAQ,EAAE,aAAa;iBACxB;;;;gBALoD,kBAAW;gBAAE,uBAAgB;gBAA9D,iBAAU;gBACrB,0BAAW;;;8BAsBjB,YAAK;;gCAvBR;;AAMa,sDAAqB"}
@@ -10,4 +10,4 @@ export * from './common/roles-type.enum';
10
10
  export * from './services/auth.service';
11
11
  export * from './services/auth-guard.service';
12
12
  export * from './services/auth-resolver.service';
13
- export * from './components/idlelogout';
13
+ export * from './interceptors/auth.interceptor';
@@ -14,5 +14,5 @@ __export(require("./common/roles-type.enum"));
14
14
  __export(require("./services/auth.service"));
15
15
  __export(require("./services/auth-guard.service"));
16
16
  __export(require("./services/auth-resolver.service"));
17
- __export(require("./components/idlelogout"));
17
+ __export(require("./interceptors/auth.interceptor"));
18
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../build/auth-monitorias/index.ts"],"names":[],"mappings":";;;;;AAAA,8CAAwC;AACxC,2DAAqD;AACrD,2DAAqD;AACrD,gEAA0D;AAC1D,0CAAoC;AAEpC,wCAAkC;AAClC,wCAAkC;AAClC,8CAAwC;AACxC,6CAAuC;AACvC,mDAA6C;AAC7C,sDAAgD;AAChD,qDAAgD"}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./auth-monitorias.module"},{"from":"./directives/hide-for-roles.directive"},{"from":"./directives/show-for-roles.directive"},{"from":"./directives/read-only-for-roles.directive"},{"from":"./common/login.model"},{"from":"./common/currentUser.model"},{"from":"./common/safe.pipe"},{"from":"./common/constants"},{"from":"./common/roles-type.enum"},{"from":"./services/auth.service"},{"from":"./services/auth-guard.service"},{"from":"./services/auth-resolver.service"},{"from":"./components/idlelogout"}]}]
1
+ [{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./auth-monitorias.module"},{"from":"./directives/hide-for-roles.directive"},{"from":"./directives/show-for-roles.directive"},{"from":"./directives/read-only-for-roles.directive"},{"from":"./common/login.model"},{"from":"./common/currentUser.model"},{"from":"./common/safe.pipe"},{"from":"./common/constants"},{"from":"./common/roles-type.enum"},{"from":"./services/auth.service"},{"from":"./services/auth-guard.service"},{"from":"./services/auth-resolver.service"},{"from":"./interceptors/auth.interceptor"}]}]
@@ -0,0 +1,8 @@
1
+ import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { AuthService } from '../services/auth.service';
4
+ export declare class AuthInterceptor implements HttpInterceptor {
5
+ private authService;
6
+ constructor(authService: AuthService);
7
+ intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
8
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var core_1 = require("@angular/core");
4
+ var auth_service_1 = require("../services/auth.service");
5
+ var AuthInterceptor = /** @class */ (function () {
6
+ function AuthInterceptor(authService) {
7
+ this.authService = authService;
8
+ }
9
+ AuthInterceptor.prototype.intercept = function (request, next) {
10
+ if (!this.authService.options.production || this.authService.options.executionEnvironment === "development") {
11
+ var pwd = this.authService.encode(this.authService.options.user + ":" + this.authService.options.pwd);
12
+ request = request.clone({ headers: request.headers.set('Authorization', "Basic " + pwd) });
13
+ }
14
+ return next.handle(request);
15
+ };
16
+ AuthInterceptor.decorators = [
17
+ { type: core_1.Injectable },
18
+ ];
19
+ /** @nocollapse */
20
+ AuthInterceptor.ctorParameters = function () { return [
21
+ { type: auth_service_1.AuthService, },
22
+ ]; };
23
+ return AuthInterceptor;
24
+ }());
25
+ exports.AuthInterceptor = AuthInterceptor;
26
+ //# sourceMappingURL=auth.interceptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.interceptor.js","sourceRoot":"","sources":["../../../build/auth-monitorias/interceptors/auth.interceptor.ts"],"names":[],"mappings":";;AAAA,sCAA2C;AAS3C,yDAAuD;;IAMrD,yBACU,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;KAC7B;IAEL,mCAAS,GAAT,UAAU,OAAyB,EAAE,IAAiB;QAEpD,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,UAAU,IAAI,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,oBAAoB,KAAK,aAAa,CAAC,CAAC,CAAC;YAC5G,IAAI,GAAG,GAAW,IAAI,CAAC,WAAW,CAAC,MAAM,CAAI,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,SAAI,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,GAAK,CAAC,CAAC;YAC9G,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,WAAS,GAAK,CAAC,EAAE,CAAC,CAAC;SAC5F;QAED,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;KAC7B;;gBAfF,iBAAU;;;;gBAHF,0BAAW;;0BATpB;;AAaa,0CAAe"}
@@ -0,0 +1 @@
1
+ [{"__symbolic":"module","version":4,"metadata":{"AuthInterceptor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":12,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../services/auth.service","name":"AuthService","line":16,"character":25}]}],"intercept":[{"__symbolic":"method"}]}}}}]
@@ -13,6 +13,7 @@ var AuthGuardService = /** @class */ (function () {
13
13
  var _this = this;
14
14
  var expectedRoles = route.data.expectedRoles.map(function (elem) { return elem.toLowerCase(); });
15
15
  return this.auth.getCurrentUser().map(function (user) {
16
+ //console.error(" **** data *** ", this.auth.options);
16
17
  if (_this.auth.getRolesPermitted(expectedRoles, user.roles).length > 0) {
17
18
  return true;
18
19
  }
@@ -20,7 +21,8 @@ var AuthGuardService = /** @class */ (function () {
20
21
  window.location.href = '/security/forbidden.html';
21
22
  return false;
22
23
  }
23
- }).catch(function () {
24
+ }).catch(function (err) {
25
+ //console.error("Error Consultando --> ", err);
24
26
  window.location.href = '/security/login.html';
25
27
  return of_1.of(false);
26
28
  });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-guard.service.js","sourceRoot":"","sources":["../../../build/auth-monitorias/services/auth-guard.service.ts"],"names":[],"mappings":";;AACA,sCAA2C;AAC3C,0CAAmG;AACnG,+CAA6C;AAC7C,yCAAwC;;IAKtC,0BAAmB,IAAiB,EAAS,MAAc;QAAxC,SAAI,GAAJ,IAAI,CAAa;QAAS,WAAM,GAAN,MAAM,CAAQ;KAAI;IAE/D,sCAAW,GAAX,UAAY,KAA6B,EAAE,KAA0B;QAArE,iBAiBC;QAfC,IAAI,aAAa,GAAY,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,UAAC,IAAW,IAAI,OAAA,IAAI,CAAC,WAAW,EAAE,EAAlB,CAAkB,CAAC,CAAC;QAC9F,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,UAAA,IAAI;;YAEtC,EAAE,CAAA,CAAC,KAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA,CAAC;gBAClE,MAAM,CAAC,IAAI,CAAC;aACf;YAAA,IAAI,CAAA,CAAC;gBACF,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,0BAA0B,CAAC;gBAClD,MAAM,CAAC,KAAK,CAAC;aAChB;SAEJ,CAAC,CAAC,KAAK,CAAC,UAAC,GAAO;;YAEb,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,sBAAsB,CAAC;YAC9C,MAAM,CAAC,OAAE,CAAC,KAAK,CAAC,CAAA;SACnB,CAAC,CAAC;KACJ;;gBArBF,iBAAU;;;;gBAJF,0BAAW;gBADX,eAAM;;2BAFf;;AAQa,4CAAgB"}
@@ -0,0 +1 @@
1
+ [{"__symbolic":"module","version":4,"metadata":{"AuthGuardService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./auth.service","name":"AuthService","line":9,"character":27},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":9,"character":55}]}],"canActivate":[{"__symbolic":"method"}]}}}}]
@@ -0,0 +1,13 @@
1
+ import { EnviromentOptions } from '../common/enviromentOptions';
2
+ export declare class AuthLocatorService {
3
+ options: EnviromentOptions;
4
+ constructor(options: EnviromentOptions);
5
+ getHost(): string;
6
+ getDefaultUrlLogin(): string;
7
+ getDefaultUrlLogout(): string;
8
+ getSamlUrlLogin(): string;
9
+ getDefaultUrlSingleLogout: () => any;
10
+ getUrlMe(): string;
11
+ getUrlSearchPerson(): string;
12
+ private buildURL(...urlElements);
13
+ }
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var core_1 = require("@angular/core");
4
+ var enviromentOptions_1 = require("../common/enviromentOptions");
5
+ var SECURITY = 'security';
6
+ var CORE = 'core';
7
+ var AUTH = 'auth';
8
+ var PERSONS = 'persons';
9
+ var SERVICES = 'services';
10
+ var LOGIN = 'login';
11
+ var LOGOUT = 'logout';
12
+ var ME = 'me';
13
+ var SEARCH_PERSONS = 'searchPersons';
14
+ var SINGLE_LOGOUT_URL = 'singlelogout';
15
+ var AuthLocatorService = /** @class */ (function () {
16
+ function AuthLocatorService(options) {
17
+ this.options = null;
18
+ this.getDefaultUrlSingleLogout = function () {
19
+ return this.buildURL(this.getHost(), SECURITY, SERVICES, AUTH, SINGLE_LOGOUT_URL);
20
+ };
21
+ this.options = options;
22
+ }
23
+ AuthLocatorService.prototype.getHost = function () {
24
+ return this.options && !this.options.production && this.options.appUrlApi ? this.options.appUrlApi : window.location.origin;
25
+ };
26
+ AuthLocatorService.prototype.getDefaultUrlLogin = function () {
27
+ return this.buildURL(this.getHost(), SECURITY, SERVICES, AUTH, LOGIN);
28
+ };
29
+ AuthLocatorService.prototype.getDefaultUrlLogout = function () {
30
+ return this.buildURL(this.getHost(), SECURITY, SERVICES, AUTH, LOGOUT);
31
+ };
32
+ AuthLocatorService.prototype.getSamlUrlLogin = function () {
33
+ return this.buildURL(this.getHost(), SECURITY, SERVICES, AUTH, LOGIN);
34
+ };
35
+ AuthLocatorService.prototype.getUrlMe = function () {
36
+ return this.buildURL(this.getHost(), SECURITY, SERVICES, AUTH, ME);
37
+ };
38
+ AuthLocatorService.prototype.getUrlSearchPerson = function () {
39
+ return this.buildURL(this.getHost(), CORE, SERVICES, PERSONS, SEARCH_PERSONS);
40
+ };
41
+ AuthLocatorService.prototype.buildURL = function () {
42
+ var urlElements = [];
43
+ for (var _i = 0; _i < arguments.length; _i++) {
44
+ urlElements[_i] = arguments[_i];
45
+ }
46
+ return urlElements.reduce(function (accumulator, currentValue) {
47
+ return accumulator + '/' + currentValue;
48
+ });
49
+ };
50
+ AuthLocatorService.decorators = [
51
+ { type: core_1.Injectable },
52
+ ];
53
+ /** @nocollapse */
54
+ AuthLocatorService.ctorParameters = function () { return [
55
+ { type: enviromentOptions_1.EnviromentOptions, decorators: [{ type: core_1.Optional },] },
56
+ ]; };
57
+ return AuthLocatorService;
58
+ }());
59
+ exports.AuthLocatorService = AuthLocatorService;
60
+ //# sourceMappingURL=auth-locator.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-locator.service.js","sourceRoot":"","sources":["../../../build/auth-monitorias/services/auth-locator.service.ts"],"names":[],"mappings":";;AAAA,sCAAqD;AACrD,iEAAgE;AAGhE,IAAM,QAAQ,GAAG,UAAU,CAAC;AAC5B,IAAM,IAAI,GAAG,MAAM,CAAC;AACpB,IAAM,IAAI,GAAG,MAAM,CAAC;AACpB,IAAM,OAAO,GAAG,SAAS,CAAC;AAC1B,IAAM,QAAQ,GAAG,UAAU,CAAC;AAC5B,IAAM,KAAK,GAAG,OAAO,CAAC;AACtB,IAAM,MAAM,GAAG,QAAQ,CAAC;AACxB,IAAM,EAAE,GAAG,IAAI,CAAC;AAChB,IAAM,cAAc,GAAG,eAAe,CAAC;AACvC,IAAM,iBAAiB,GAAG,cAAc,CAAC;;IAOrC,4BACgB;uBAHa,IAAI;yCAwBE;YAC/B,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,iBAAiB,CAAC,CAAC;SACrF;QArBG,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;KACzB;IAEM,oCAAO,GAAd;QACI,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;KAC/H;IAEM,+CAAkB,GAAzB;QACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;KACzE;IAEM,gDAAmB,GAA1B;QACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;KAC1E;IAEM,4CAAe,GAAtB;QACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;KACzE;IAMM,qCAAQ,GAAf;QACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;KACtE;IAEM,+CAAkB,GAAzB;QACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;KACjF;IAEO,qCAAQ,GAAhB;QAAiB,qBAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,gCAAc;;QAC3B,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,WAAW,EAAE,YAAY;YACzD,MAAM,CAAC,WAAW,GAAG,GAAG,GAAG,YAAY,CAAC;SAC3C,CAAC,CAAC;KACN;;gBA3CJ,iBAAU;;;;gBAdF,qCAAiB,uBAoBjB,eAAQ;;6BArBjB;;AAgBa,gDAAkB"}
@@ -0,0 +1 @@
1
+ [{"__symbolic":"module","version":4,"metadata":{"AuthLocatorService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":21,"character":9}}]],"parameters":[{"__symbolic":"reference","module":"../common/enviromentOptions","name":"EnviromentOptions","line":21,"character":29}]}],"getHost":[{"__symbolic":"method"}],"getDefaultUrlLogin":[{"__symbolic":"method"}],"getDefaultUrlLogout":[{"__symbolic":"method"}],"getSamlUrlLogin":[{"__symbolic":"method"}],"getUrlMe":[{"__symbolic":"method"}],"getUrlSearchPerson":[{"__symbolic":"method"}],"buildURL":[{"__symbolic":"method"}]}}}}]
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-resolver.service.js","sourceRoot":"","sources":["../../../build/auth-monitorias/services/auth-resolver.service.ts"],"names":[],"mappings":";;AACA,sCAA0C;AAC1C,+CAA6C;AAE7C,yCAAwC;;IAMpC,6BAAoB,IAAiB;QAAjB,SAAI,GAAJ,IAAI,CAAa;KAAG;IAExC,qCAAO,GAAP;QACI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,KAAK,CAAE;YACrC,MAAM,CAAC,OAAE,CAAC,KAAK,CAAC,CAAC;SACpB,CAAC,CAAC;KACN;;gBATJ,iBAAU;;;;gBALF,0BAAW;;8BAFpB;;AAQa,kDAAmB"}
@@ -6,13 +6,15 @@ import 'rxjs/add/operator/share';
6
6
  import { AuthLocatorService } from './auth-locator.service';
7
7
  import { LoginModel } from '../common/login.model';
8
8
  import { CurrentUserModel } from '../common/currentUser.model';
9
+ import { EnviromentOptions } from '../common/enviromentOptions';
9
10
  export declare class AuthService {
10
11
  private http;
11
12
  private urlService;
12
- headers: HttpHeaders;
13
13
  private onSubject;
14
+ headers: HttpHeaders;
14
15
  currentUserChanges: Observable<any>;
15
- constructor(http: HttpClient, urlService: AuthLocatorService);
16
+ options: EnviromentOptions;
17
+ constructor(options: EnviromentOptions, http: HttpClient, urlService: AuthLocatorService);
16
18
  ngOnDestroy(): void;
17
19
  /**
18
20
  *
@@ -25,11 +27,27 @@ export declare class AuthService {
25
27
  * Do logout in monitorias
26
28
  */
27
29
  doLogout(urlLogout?: string): Observable<any>;
30
+ /**
31
+ *
32
+ * Do login into monitorias via SAML
33
+ * @param urlLogin
34
+ */
35
+ doSamlLogin(urlLogin?: string): Observable<Object>;
36
+ /**
37
+ * Do saml logout in monitorias
38
+ */
39
+ doSamlLogout(urlLogout?: string): Observable<Object>;
28
40
  /**
29
41
  * Get current User from monitorias
30
42
  * @param urlMe
31
43
  */
32
44
  getCurrentUser(urlMe?: string): Observable<any>;
45
+ /**
46
+ *
47
+ * Returns the data of the person searching with the username
48
+ * @param username
49
+ */
50
+ searchPersons(username: string): Observable<any>;
33
51
  /**
34
52
  * Get current Roles
35
53
  */
@@ -76,4 +94,14 @@ export declare class AuthService {
76
94
  * @param error
77
95
  */
78
96
  private handleError(error);
97
+ /**
98
+ * encode in base 64
99
+ * @param input
100
+ */
101
+ encode(input: string): string;
102
+ /**
103
+ * decode in base 64
104
+ * @param input
105
+ */
106
+ decode(input: string): any;
79
107
  }