All Projects → oktadev → okta-angular-sign-in-widget-example

oktadev / okta-angular-sign-in-widget-example

Licence: Apache-2.0 license
Angular + Okta Sign-In Widget Example

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to okta-angular-sign-in-widget-example

okta-angular-openid-connect-example
Angular + Angular CLI with Authentication from OpenID Connect and Okta
Stars: ✭ 19 (+11.76%)
Mutual labels:  angular-cli, okta
Virtual-Classroom
Web Application based on Jitsi-Meet for better interaction between faculty and students.
Stars: ✭ 35 (+105.88%)
Mutual labels:  angular-cli
Angular Cli Mvc
angular4+bootstrap3写的web应用
Stars: ✭ 197 (+1058.82%)
Mutual labels:  angular-cli
Angular Ru Interview Questions
Вопросы на собеседовании по Angular
Stars: ✭ 224 (+1217.65%)
Mutual labels:  angular-cli
Sb Admin Material
Simple Dashboard Admin App built using Angular 9 and Material 2.
Stars: ✭ 205 (+1105.88%)
Mutual labels:  angular-cli
Blog Angular
Angular 笔记
Stars: ✭ 238 (+1300%)
Mutual labels:  angular-cli
Nativescript Schematics
nativescript, mobile, schematics, angular
Stars: ✭ 176 (+935.29%)
Mutual labels:  angular-cli
blogging-app-with-Angular-CloudFirestore
A blogging application created with the help of Angular on front-end and Google Cloud Firestore on backend.
Stars: ✭ 45 (+164.71%)
Mutual labels:  angular-cli
Rwa Trivia
Trivia App - Real World Angular series
Stars: ✭ 251 (+1376.47%)
Mutual labels:  angular-cli
Angular Ngrx Material Starter
Angular, NgRx, Angular CLI & Angular Material Starter Project
Stars: ✭ 2,623 (+15329.41%)
Mutual labels:  angular-cli
Angular5 Seed
Angular5 Seed for Application
Stars: ✭ 222 (+1205.88%)
Mutual labels:  angular-cli
Angularfire2 Offline
🔌 A simple wrapper for AngularFire2 to read and write to Firebase while offline, even after a complete refresh.
Stars: ✭ 209 (+1129.41%)
Mutual labels:  angular-cli
Model
Angular Model - Simple state management with minimalist API, one way data flow, multiple model support and immutable data exposed as RxJS Observable.
Stars: ✭ 242 (+1323.53%)
Mutual labels:  angular-cli
Yfiles For Html Demos
Contains demo sources for the JavaScript diagramming library yFiles for HTML
Stars: ✭ 202 (+1088.24%)
Mutual labels:  angular-cli
spring-boot-angular-example
Example app showing how to build a Spring Boot REST API and Angular UI
Stars: ✭ 94 (+452.94%)
Mutual labels:  angular-cli
Ngtron
Easily serve and build angular based electron applications
Stars: ✭ 178 (+947.06%)
Mutual labels:  angular-cli
Codelyzer
Static analysis for Angular projects.
Stars: ✭ 2,436 (+14229.41%)
Mutual labels:  angular-cli
Angular11 App
Angular 11 ,Bootstrap 5, Node.js, Express.js, CRUD REST API, PWA, SSR, SEO, Angular Universal, Lazy Loading, PostgreSQL, MYSQL
Stars: ✭ 233 (+1270.59%)
Mutual labels:  angular-cli
abp plugin with ui
Demo of using multiple angular applications and aspnetboilerplate to create plugin application
Stars: ✭ 17 (+0%)
Mutual labels:  angular-cli
requests auth
Authentication classes to be used with requests
Stars: ✭ 28 (+64.71%)
Mutual labels:  okta

Angular + Okta Sign-In Widget Example

This example app shows how to use Okta's Sign-In Widget in an Angular app.

Please read Build an Angular App with Okta's Sign-In Widget in 15 Minutes to see how this app was created.

Prerequisites: Node.js.

Okta has Authentication and User Management APIs that reduce development time with instant-on, scalable user infrastructure. Okta's intuitive API and expert support make it easy for developers to authenticate, manage and secure users and roles in any application.

Getting Started

To install this example application, run the following commands:

git clone https://github.com/oktadeveloper/okta-angular-sign-in-widget-example.git
cd okta-angular-sign-in-widget-example
npm install

This will get a copy of the project installed locally, install all of its dependencies and start the app.

Create an OIDC App in Okta

You will need to create an OIDC App in Okta to get your values to perform authentication.

OpenID Connect is built on top of the OAuth 2.0 protocol. It allows clients to verify the identity of the user and, as well as to obtain their basic profile information. To learn more, see http://openid.net/connect.

Login to your Okta account, or create one if you don't have one. Navigate to Applications and click on the Add Application button. Select SPA and click Next. On the next page, specify http://localhost:4200 as a Base URI, Login redirect URI, and Logout redirect URI. Click Done and copy the generated Client ID.

In src/app/shared/okta/okta.service.ts, set the baseUrl and paste your clientId.

this.widget = new OktaSignIn({
  baseUrl: 'https://{yourOktaDomain}',
  clientId: '{clientId}',
  redirectUri: 'http://localhost:4200'
});

TIP: The value of {yourOktaDomain} should be something like dev-123456.okta.com. Make sure you don't include -admin in the value!

After making these changes, you should be able to start the app (with ng serve) and log in with your credentials at http://localhost:4200.

Links

This example uses the following libraries provided by Okta:

Help

Please post any questions as comments on the blog post, or visit our Okta Developer Forums. You can also email [email protected] if would like to create a support ticket.

License

Apache 2.0, see LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].