Professional Documents
Culture Documents
[LIVE WEBINAR] Tuesday, June 9th: Migrating to the cloud? Avoid the business risks & costs Sign Up Now
DZone > Java Zone > How to Build a Coronavirus Dashboard in Java
Experience the power of MariaDB Platform: data security, plus schema flexibility & semi-structured data with JSON and SQL.
the Guide
Presented by MariaDB
This tutorial explains how to create a simple dashboard to track coronavirus data using the Java programming
language. The dashboard is a web application implemented with Spring Boot 2.2.6 and Vaadin 14.1.25. It includes
features of Progressive Web Applications (PWA), such as responsive design and the possibility to install the app
onto the home screen of mobile phones and other devices.
1. Go to https://start.spring.io and generate a new Maven project with JAR packaging and the following
dependencies:
Vaadin: Java framework for building rich client apps based on Web Components.
2. Import the Maven project into your favorite IDE. This tutorial uses IntelliJ IDEA.
XML
1 <dependency>
2 <groupId>com.vaadin</groupId>
3 <artifactId>vaadin-board-flow</artifactId>
4 </dependency>
5 <dependency>
6 <groupId>com.vaadin</groupId>
7 <artifactId>vaadin-charts-flow</artifactId>
8 </dependency>
9 <dependency>
10 <groupId>com.vaadin</groupId>
Site reliability engineering (SRE) and the four golden signals of monitoring create visibility into application and infrastructure health.
about the golden signals and see how SRE teams are using them to improve observability and service resilience.
Presented by VictorOps
DZone > Java Zone > How to Use Java to Build Single Sign-on
All Development Should be Secure Development! Learn why automation and security testing tools are key components in the implementa
secure development life cycle in this on-demand webinar. Watch now!
Presented by Synopsys
When developing applications, it’s often the case that you have a single resource server providing data to multiple client
Although the apps might have similar users, they likely have different permissions they need to enforce. Imagine a situat
only a subset of users of the irst app should have access to the second (think an admin console application versus a clien
application); what would you do to implement this?
In this article, I’m going to show you how to use Okta and Spring Boot to implement single sign-on with two client applic
a single resource server. I’m also going to discuss how to use access policies to enforce authentication and authorization
and how to restrict access to the resource server based on application scopes.
Before we get into the code, you need to have the proper user authentication con igurations in place. For today, you’ll be
as the OAuth 2.0 and OpenID Connect (OIDC) provider. This will enable you to manage users and groups, as well as easily
options like social and multi-factor log authentication.
First, you’ll need to head over to register and create a free Okta developer account (if you haven’t already). You’ll receive
with instructions on how to complete the setup of your account. Once this has been done, navigate back to your Okta acc
up your web applications, users, resource server, and authorization server. It’s possible that you’ll need to click the yellow
button the irst time you log on to access the developer’s console.
In the Okta developer console, navigate to Applications and click Add Application. Choose Web and click Next. Populat
ields with these values:
FIELD VALUE
Click Done.
Scroll down and make a note of the Client ID and Client Secret . You’ll use those values shortly.
Repeat these steps for your second application with these values: