Prerequisites
JDK
The Java client libraries requires JDK 11+. This tutorial uses JDK 17.
IDE
Use an IDE of your choice.
Get a WebID and Solid Pod
To get a WebID and a Pod on PodSpaces :
Go to PodSpaces .
To create an account, you must agree to the Inrupt’s Terms of Service. To agree, select the checkbox.
If you agree to Inrupt’s Terms of Service, click on the Sign Up button.
If you have not registered an account with the Inrupt Identity Provider, click on the Sign up link to create an account:
Fill in your username, email, and password.
Click Sign Up. You are sent a verification email.
Check your email for the verification email. Follow the instructions in the email to verify. Check your spam if you do not see the email in your inbox.
Once verified, return to click Continue to go to the Sign in page:
Enter your username and password.
Click Sign in to your account. The screen displays the access required to continue.
To allow and continue, click Allow. The application displays your WebID and Pod Storage details:
WebID:
https://id.inrupt.com/{username}
. Pod Storage:https://storage.inrupt.com/{Root Container}
Client Credentials
Inrupt’s PodSpaces provides an Application Registration page where you can statically register your applications to generate credentials for them.
Go to PodSpaces Application Registration page.
If not already logged in, you will redirect to the login page. Log in with your username and password.
In the Register an app textbox, enter your application’s name and click Register.
The Client ID and Client Secret for your application appears under Apps You’ve Registered list.
Safeguard your Client ID
and Client Secret
values. Do not share these with any third parties as anyone with your Client ID
and Client Secret
values can impersonate you and act fully on your behalf.
Initialized Spring Boot Web Project
For Java, this tutorial uses Spring Boot Web Maven project. Initialize a Spring Boot Web Maven/Java project.
If you are initializing a new project at https://start.spring.io/ , specify the following:
Project
Select Maven
.
Language
Select Java
.
Spring Boot
Select a version.
Project Metadata
Artifact
getting-started
Name
getting-started
Description
Demo Getting Started project for Solid
Package Name
com.example.gettingstarted
Packaging
Jar
Java
17
Dependencies
Spring Web
Click Generate.
Once you have generated and downloaded the resulting zip
file, unzip the file to your destination directory and open the project in your IDE.
Last updated