okta.module.js 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. "use strict";
  2. /*
  3. * Copyright (c) 2017, Okta, Inc. and/or its affiliates. All rights reserved.
  4. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
  5. *
  6. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
  7. * Unless required by applicable law or agreed to in writing, software
  8. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  9. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. *
  11. * See the License for the specific language governing permissions and limitations under the License.
  12. */
  13. Object.defineProperty(exports, "__esModule", { value: true });
  14. var core_1 = require("@angular/core");
  15. var _1 = require("./components/");
  16. var okta_service_1 = require("./services/okta.service");
  17. var okta_guard_1 = require("./okta.guard");
  18. var okta_config_1 = require("./models/okta.config");
  19. var OktaAuthModule = /** @class */ (function () {
  20. function OktaAuthModule() {
  21. }
  22. OktaAuthModule.initAuth = function (config) {
  23. return {
  24. ngModule: OktaAuthModule,
  25. providers: [
  26. okta_guard_1.OktaAuthGuard,
  27. okta_service_1.OktaAuthService,
  28. { provide: okta_config_1.OKTA_CONFIG, useValue: config }
  29. ]
  30. };
  31. };
  32. OktaAuthModule.decorators = [
  33. { type: core_1.NgModule, args: [{
  34. declarations: [
  35. _1.OktaCallbackComponent,
  36. _1.OktaLoginRedirectComponent
  37. ],
  38. exports: [
  39. _1.OktaCallbackComponent,
  40. _1.OktaLoginRedirectComponent
  41. ]
  42. },] },
  43. ];
  44. /** @nocollapse */
  45. OktaAuthModule.ctorParameters = function () { return []; };
  46. return OktaAuthModule;
  47. }());
  48. exports.OktaAuthModule = OktaAuthModule;
  49. //# sourceMappingURL=okta.module.js.map