callback.component.js 1.4KB

12345678910111213141516171819202122232425262728293031323334
  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 okta_service_1 = require("../services/okta.service");
  16. var OktaCallbackComponent = /** @class */ (function () {
  17. function OktaCallbackComponent(okta) {
  18. this.okta = okta;
  19. /**
  20. * Handles the response from Okta and parses tokens.
  21. */
  22. okta.handleAuthentication();
  23. }
  24. OktaCallbackComponent.decorators = [
  25. { type: core_1.Component, args: [{ template: "" },] },
  26. ];
  27. /** @nocollapse */
  28. OktaCallbackComponent.ctorParameters = function () { return [
  29. { type: okta_service_1.OktaAuthService, },
  30. ]; };
  31. return OktaCallbackComponent;
  32. }());
  33. exports.OktaCallbackComponent = OktaCallbackComponent;
  34. //# sourceMappingURL=callback.component.js.map