All Projects → oktadev → okta-kotlin-typescript-notes-example

oktadev / okta-kotlin-typescript-notes-example

Licence: Apache-2.0 license
Kotlin and TypeScript! 🎉

Programming Languages

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

Projects that are alternatives of or similar to okta-kotlin-typescript-notes-example

clisso
Get temporary credentials for cloud providers from the command line.
Stars: ✭ 34 (+142.86%)
Mutual labels:  okta
aws-okta-processor
Okta credential processor for AWS CLI
Stars: ✭ 68 (+385.71%)
Mutual labels:  okta
okta-spring-boot-saml-example
Spring Boot, SAML, and Okta
Stars: ✭ 52 (+271.43%)
Mutual labels:  okta
okta-angular-openid-connect-example
Angular + Angular CLI with Authentication from OpenID Connect and Okta
Stars: ✭ 19 (+35.71%)
Mutual labels:  okta
okta-angular-sign-in-widget-example
Angular + Okta Sign-In Widget Example
Stars: ✭ 17 (+21.43%)
Mutual labels:  okta
pan-globalprotect-okta
PaloAlto Networks GlobalProtect VPN (integrated with OKTA) command-line client
Stars: ✭ 85 (+507.14%)
Mutual labels:  okta
okta-ionic-auth-example
Example showing Ionic Authentication with Okta
Stars: ✭ 23 (+64.29%)
Mutual labels:  okta
ansible-okta-modules
Ansible modules for the Okta API
Stars: ✭ 24 (+71.43%)
Mutual labels:  okta
okta-microservice-security-examples
Demos from Oktane18: API and Microservices Best Practices
Stars: ✭ 17 (+21.43%)
Mutual labels:  okta
okta-terraform-demo
Example demos showcasing okta and terraform
Stars: ✭ 14 (+0%)
Mutual labels:  okta
okta-api-center
Get up and running quickly with Okta's OAuth as a Service and your favorite API Gateway.
Stars: ✭ 58 (+314.29%)
Mutual labels:  okta
requests auth
Authentication classes to be used with requests
Stars: ✭ 28 (+100%)
Mutual labels:  okta
clearpass-cloud-service-whitelists
Whitelist entries for cloud identity services
Stars: ✭ 21 (+50%)
Mutual labels:  okta
kamu
You favorite book library
Stars: ✭ 65 (+364.29%)
Mutual labels:  okta
crowbar
Securily generates temporary AWS credentials through identity providers using SAML
Stars: ✭ 23 (+64.29%)
Mutual labels:  okta
yak
A tool to log in to AWS through Okta
Stars: ✭ 38 (+171.43%)
Mutual labels:  okta
okta aws
Tool for accessing the AWS API for an account you normally access via okta
Stars: ✭ 27 (+92.86%)
Mutual labels:  okta
gabrielsroka.github.io
My website, including rockstar: Export Okta Users, Groups, etc. to CSV. Show SAML assertion.
Stars: ✭ 62 (+342.86%)
Mutual labels:  okta
okta-jhipster-microservices-oauth-example
A microservices architecture built with JHipster, OAuth 2.0, and Okta
Stars: ✭ 29 (+107.14%)
Mutual labels:  okta
spring-projects
Some spring sample projects
Stars: ✭ 24 (+71.43%)
Mutual labels:  okta

Kotlin and TypeScript Notes Example

This example app shows how to build a basic notes app with Kotlin, Spring Boot, Spring Data, TypeScript, and Angular.

Please read Build a Secure Notes Application with Kotlin, TypeScript, and Okta 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-kotlin-typescript-notes-example.git
cd okta-kotlin-typescript-notes-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

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

yarn && yarn start

Create an OIDC App in Okta

You will need to create an OIDC App in Okta to get a clientId.

Log in to your Okta Developer account (or sign up if you don’t have an account) and navigate to Applications and click on Add Application. Select Single Page App (SPA) and click Next. Give the application a name (e.g. “My OIDC App”) and specify http://localhost:4200 as a Login redirect URI. Click Done and admire your handiwork!

My OIDC App

Server Configuration

Set the issuer and copy the clientId into server/src/main/resources/application.properties.

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

okta.oauth.issuer=https://{yourOktaDomain}.com/oauth2/default
okta.oauth.clientId={clientId}

Client Configuration

For the client, set the issuer and copy the clientId into client/src/app/shared/okta.service.ts.

signIn = new OktaSignIn({
  baseUrl: 'https://{yourOktaDomain}.com',
  clientId: '{clientId}',
  redirectUri: 'http://localhost:4200',
  authParams: {
    issuer: 'default',
    responseType: ['id_token', 'token'],
    scopes: ['openid', 'email', 'profile']
  }
});

NOTE: There’s one issue with Okta’s Sign-In Widget I still haven’t fully figured out. Not every time, but everyone once it in a while, it requires me to move my mouse or click on the screen to make the notes list load after logging in. I opened an issue for this, and tried the suggested solution, but it doesn’t work 100% of the time.

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