diff --git a/custom-login/package-lock.json b/custom-login/package-lock.json index 05b8a2a..f0c1edf 100644 --- a/custom-login/package-lock.json +++ b/custom-login/package-lock.json @@ -2793,9 +2793,9 @@ }, "dependencies": { "core-js": { - "version": "2.6.11", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.11.tgz", - "integrity": "sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg==" + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", + "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==" } } }, @@ -3132,9 +3132,9 @@ } }, "@okta/okta-signin-widget": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@okta/okta-signin-widget/-/okta-signin-widget-5.0.0.tgz", - "integrity": "sha512-1Sj44Pt1JUto9GdirItdpciLePHx0BjWaYpLfPY2XxMSxDnn6eLlWIRrH9CxXTaHEHcGB5qlcD10kFYwLzHbAA==", + "version": "5.4.2", + "resolved": "https://registry.npmjs.org/@okta/okta-signin-widget/-/okta-signin-widget-5.4.2.tgz", + "integrity": "sha512-XXyaVywRTjlY8G7YJAqz5AtaDRJlUp+OkyOtvxLRju0sGnpwLMlD/Pyt6cJNuH42iKmNMi1iEBVoKyA4vWqREg==", "requires": { "@babel/polyfill": "^7.10.1", "@babel/runtime": "^7.10.3", @@ -6666,9 +6666,9 @@ "dev": true }, "handlebars": { - "version": "4.7.6", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.6.tgz", - "integrity": "sha512-1f2BACcBfiwAfStCKZNrUCgqNZkGsAT7UM3kkYtXuLo0KnaVfjKOyf7PRzB6++aK9STyT1Pd2ZCPe3EGOXleXA==", + "version": "4.7.7", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", + "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", "requires": { "minimist": "^1.2.5", "neo-async": "^2.6.0", @@ -12473,9 +12473,9 @@ "integrity": "sha1-t60WWm+WJVhReoZ8XEv5OZ/Pfpg=" }, "uglify-js": { - "version": "3.11.5", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.11.5.tgz", - "integrity": "sha512-btvv/baMqe7HxP7zJSF7Uc16h1mSfuuSplT0/qdjxseesDU+yYzH33eHBH+eMdeRXwujXspaCTooWHQVVBh09w==", + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.0.tgz", + "integrity": "sha512-TWYSWa9T2pPN4DIJYbU9oAjQx+5qdV5RUDxwARg8fmJZrD/V27Zj0JngW5xg1DFz42G0uDYl2XhzF6alSzD62w==", "optional": true }, "underscore": { diff --git a/custom-login/package.json b/custom-login/package.json index 45f21ed..96b0a81 100644 --- a/custom-login/package.json +++ b/custom-login/package.json @@ -20,7 +20,7 @@ "@angular/platform-browser-dynamic": "^11.0.9", "@angular/router": "^11.0.9", "@okta/okta-angular": "^3.0.1", - "@okta/okta-signin-widget": "^5.0.0", + "@okta/okta-signin-widget": "^5.4.0", "colors": "^1.4.0", "core-js": "^3.6.5", "rxjs": "^6.6.3", diff --git a/custom-login/src/app/home/home.component.html b/custom-login/src/app/home/home.component.html index 22ba359..354d502 100644 --- a/custom-login/src/app/home/home.component.html +++ b/custom-login/src/app/home/home.component.html @@ -2,7 +2,7 @@

Custom Login Page with Sign In Widget

If you‘re viewing this page then you have successfully started this Angular application.

This example shows you how to use the - Okta Angular Library + Okta Angular Library and the Okta Sign-In Widget to add the diff --git a/custom-login/src/app/login/login.component.ts b/custom-login/src/app/login/login.component.ts index eb35cf9..671113d 100644 --- a/custom-login/src/app/login/login.component.ts +++ b/custom-login/src/app/login/login.component.ts @@ -42,10 +42,11 @@ export class LoginComponent implements OnInit { }, authParams: { issuer: sampleConfig.oidc.issuer - } + }, + useInteractionCodeFlow: false // Set to true if your org is OIE enabled }); } - + ngOnInit() { this.signIn.showSignInToGetTokens({ el: '#sign-in-widget',