All Projects → oktadev → okta-spring-boot-2-angular-5-example

oktadev / okta-spring-boot-2-angular-5-example

Licence: Apache-2.0 license
A Cool Cars Example that showcases Spring Boot 2, Angular 5, and Okta's Support for both.

Programming Languages

typescript
32286 projects
shell
77523 projects
Batchfile
5799 projects
java
68154 projects - #9 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to okta-spring-boot-2-angular-5-example

okta-spring-boot-2-angular-7-example
A Cool Cars Example that showcases Spring Boot 2.1, Angular 7, and Okta's support for both.
Stars: ✭ 87 (-35.07%)
Mutual labels:  oidc, spring-boot2, okta-angular
okta-spring-boot-vue-crud-example
A Todo App that showcases Spring Boot, Vue.js, and Okta's support for both.
Stars: ✭ 33 (-75.37%)
Mutual labels:  oidc, spring-boot2
ng-pdf-highlighter
PDF annotation with angular7
Stars: ✭ 15 (-88.81%)
Mutual labels:  angular5
mock-oauth2-server
A scriptable/customizable web server for testing HTTP clients using OAuth2/OpenID Connect or applications with a dependency to a running OAuth2 server (i.e. APIs requiring signed JWTs from a known issuer)
Stars: ✭ 83 (-38.06%)
Mutual labels:  oidc
native-java-examples
Native Java Apps with Micronaut, Quarkus, and Spring Boot
Stars: ✭ 44 (-67.16%)
Mutual labels:  oidc
aws-cdk-github-oidc
CDK constructs to use OpenID Connect for authenticating your Github Action workflow with AWS IAM
Stars: ✭ 59 (-55.97%)
Mutual labels:  oidc
eks
AWS EKS - kubernetes project
Stars: ✭ 149 (+11.19%)
Mutual labels:  oidc
ng-toggle
Bootstrap-styled Angular Toggle Component
Stars: ✭ 14 (-89.55%)
Mutual labels:  angular5
okta-ionic-auth-example
Example showing Ionic Authentication with Okta
Stars: ✭ 23 (-82.84%)
Mutual labels:  oidc
schematics
Schematics for adding Okta Auth to your projects
Stars: ✭ 60 (-55.22%)
Mutual labels:  oidc
cap
A collection of authentication Go packages related to OIDC, JWKs and Distributed Claims.
Stars: ✭ 328 (+144.78%)
Mutual labels:  oidc
IdentityServer4.PhoneNumberAuth
Sample passwordless phone number authentication using OAuth in ASP.NET Core 2.2
Stars: ✭ 83 (-38.06%)
Mutual labels:  oidc
fastapi-azure-auth
Easy and secure implementation of Azure AD for your FastAPI APIs 🔒 B2C, single- and multi-tenant support.
Stars: ✭ 174 (+29.85%)
Mutual labels:  oidc
angular-landing-page
Beautiful Angular landing page with firebase, chat, poll, dynamic features/gallary, and nice animations/scrolling.
Stars: ✭ 43 (-67.91%)
Mutual labels:  angular5
ngx-print
🖨️ A plug n' play Angular (2++) library to print your stuff
Stars: ✭ 124 (-7.46%)
Mutual labels:  angular5
angular-custom-dropdown
Angular2+ Dropdown. Simple dropdowns without relying on CSS frameworks.
Stars: ✭ 16 (-88.06%)
Mutual labels:  angular5
acronym-decoder
Acronym Decoder
Stars: ✭ 39 (-70.9%)
Mutual labels:  angular5
ngx-konami
A simple directive to add easter eggs in your Angular application 👾
Stars: ✭ 34 (-74.63%)
Mutual labels:  angular5
angular-rollbar-source-maps
Angular 2+ implementation to upload sourcemaps to Rollbar
Stars: ✭ 17 (-87.31%)
Mutual labels:  angular5
flaskoidc
A wrapper of Flask with pre-configured OIDC support
Stars: ✭ 33 (-75.37%)
Mutual labels:  oidc

Basic CRUD App with Angular 5.0 and Spring Boot 2.0

This example app shows how to build a basic CRUD app with Spring Boot 2.0, Spring Data, and Angular 5.0.

Please read Build a Basic CRUD App with Angular 5.0 and Spring Boot 2.0 to see how this app was created.

Prerequisites: Java 8 and 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-spring-boot-2-angular-5-example.git
cd okta-spring-boot-2-angular-5-example

This will get a copy of the project installed locally. To install all of its dependencies and start each app, follow the instructions below.

To run the server, cd into the server folder and run:

./mvnw spring-boot:run

To run the client, cd into the client folder and run:

npm install && npm start

Create an OIDC App in Okta

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

Log in to your Okta Developer account (or sign up if you don’t have an account) and navigate to Applications > Add Application. Click Single-Page App, click Next, and give the app a name you’ll remember. Change all instances of localhost:8080 to localhost:4200 and click Done.

Server Configuration

Set your domain and copy the clientId into server/src/main/resources/application.yml.

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

security:
    oauth2:
        client:
            access-token-uri: https://{yourOktaDomain}.com/oauth2/default/v1/token
            user-authorization-uri: https://{yourOktaDomain}.com/oauth2/default/v1/authorize
            client-id: {clientId}
            scope: openid profile email
        resource:
            user-info-uri: https://{yourOktaDomain}.com/oauth2/default/v1/userinfo
            token-info-uri: https://{yourOktaDomain}.com/oauth2/default/v1/introspect
            prefer-token-info: false

Client Configuration

For the client, set the issuer and copy the clientId into client/src/app/app.module.ts.

const config = {
  issuer: 'https://{yourOktaDomain}.com/oauth2/default',
  redirectUri: window.location.origin + '/implicit/callback',
  clientId: '{clientId}'
};

Links

This example uses the following open source libraries:

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].