Category: Java

The Architecture of Stormpath’s Java SDK

Stormpath provides several language-specific SDKs to allow simple interaction with its REST API. The Java SDK is one of our most popular ones. In this article, we’ll dive under the hood and take a closer look at the architecture of the Java SDK. First of all, you might wonder, why did you develop an SDK? …

Securing JSPs with Spring Security and Stormpath

Even though JSPs have fallen out of fashion lately, they are still a core part of many enterprise infrastructures. In this tutorial, we’ll show you how to secure them using the excellent Spring Security suite and Stormpath’s Spring Boot integration for user management. JSPs and Spring Boot We’ll start by serving up a simple JSP …

CSRF Protection with JWTs in Spring Security

If you’ve never heard of JWTs (JSON Web Tokens), well, you don’t work in tech, or you’ve purposely unplugged your computer from the Internet. JWTs are frequently used in OAuth2 as access and refresh tokens as well as a variety of other applications. JWTs can be used wherever you need a stand-in to represent a …

Optimize Your React Application with Webpack in 15 Minutes

Looking to optimize the performance of your Spring Boot Application? (Who isn’t?) Sure, you could pull JavaScript and CSS files from a CDN, but for a real performance upgrade you probably want to try bundling your assets with webpack! In a previous tutorial you created a web application using React and Bootstrap that pulled libraries …

Build a CRUD Application with React, Spring Boot, and User Authentication

Heads up… this article is old! For an updated version of this article, see Use React and Spring Boot to Build a Simple CRUD App on the Okta developer blog. React is one of the most popular libraries for creating web application frontends. With Spring Boot it’s easier than ever to create a CRUD backend …

Add Stormpath to Your JHipster Application

Heads up… this post is old! For an updated version of this post, see Use OpenID Connect Support with JHipster on the Okta developer blog. One of the first things I wanted to do when I started working for Stormpath was to integrate it with JHipster. My reasoning was twofold: 1) I wanted to make …

Tutorial: Get Started with AngularJS, Spring Boot, and Stormpath

Last year, Micah Silverman wrote about integrating Spring Boot, Spring Security, and Stormpath. Today, I’m going to take you on a similar journey, except this time you’ll be using AngularJS and Stormpath’s AngularJS SDK for the UI. Along the way, you’ll learn how to create REST endpoints with Spring Data REST, configure Spring Boot to …

User Authentication in Java 8

Java 8 added many new features that both modernize and simplify the language. Today, I’ll walk you through how some of these new features impact authentication, authorization, and user management. We’ll explore a few of the most important new features, including: Lambdas, method references, and Streams. But first, some background on Stormpath and the code …

Ksubaka Chooses Stormpath for Identity Management in Java

The team at Ksubaka implemented Stormpath earlier this year. We’re excited to share this post on their experiences from Ksubaka DevOps Lead Phil Hendren. Here at Ksubaka we’ve been using Stormpath for identity management in Java since the beginning of 2016, but what is Ksubaka? Ksubaka is media network that links brands to consumers in …

Build a Spring Boot API with Hazelcast for Cached User Authentication

By caching API responses and removing the need for a round trip over the wire to a remote API service, you save on future API calls (potentially saving you money) and create a far more responsive API. For these reasons, all of Stormpath’s primary SDKs have a caching layer built in, standard. In this post, …