Skip to content

Thunder v0.107.0

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 17 Nov 04:40
· 3476 commits to main since this release
b90bb95

WSO2 Thunder ⚡

Identity Management Suite

License
GitHub last commit
GitHub issues
codecov.io

Thunder is a modern, open-source identity management service designed for teams building secure, customizable authentication experiences across applications, services, and AI agents. It enables developers to design and orchestrate login, registration, and recovery flows using a flexible identity flow designer.

Designed for extensibility, scalability, and seamless containerized deployment, Thunder integrates naturally with microservices and DevOps environments—serving as the core identity layer for your cloud platform.

Full Changelog: v0.106.0...v0.107.0

⚡ Quickstart

This Quickstart guide will help you get started with WSO2 Thunder quickly. It walks you through downloading and running the product, trying out the sample app, and exploring registering a user, logging in, and using the Client Credentials flow.

Download and Run WSO2 Thunder

You can run WSO2 Thunder either by downloading the release artifact or using the official Docker image.

Option 1: Run from Release Artifact

Follow these steps to download the 0.107.0 release of WSO2 Thunder and run it locally.

  1. Download the distribution from the 0.107.0 release
OS Architecture Download Link
macOS ARM64 (Apple Silicon) thunder-0.107.0-macos-arm64.zip
macOS x64 (Intel) thunder-0.107.0-macos-x64.zip
Linux x64 thunder-0.107.0-linux-x64.zip
Linux ARM64 thunder-0.107.0-linux-arm64.zip
Windows x64 thunder-0.107.0-win-x64.zip
  1. Unzip the product

    Unzip the downloaded file using the following command:

    unzip thunder-0.107.0-<os>-<arch>.zip

    Navigate to the unzipped directory:

    cd thunder-0.107.0-<os>-<arch>/
  2. Setup the product

    You need to setup the server with the initial configurations and data before starting the server for the first time.

    If you are using a Linux or macOS machine:

    ./setup.sh

    If you are using a Windows machine:

    .\setup.ps1

    Note the id of the sample app indicated with the log line [INFO] Sample App ID: <id>. You'll need it for the sample app configuration.

  3. Start the product

    If you are using a Linux or macOS machine:

    ./start.sh

    If you are using a Windows machine:

    .\start.ps1

    The product will start on https://localhost:8090.

Option 2: Run with Docker

Follow these steps to run WSO2 Thunder using Docker.

  1. Pull the Docker image

    docker pull ghcr.io/asgardeo/thunder:0.107.0
  2. Setup the product

    You need to setup the server with the initial configurations and data before starting the server for the first time.

        docker run -it --rm \
            ghcr.io/asgardeo/thunder:0.107.0 \
            ./setup.sh

    Note the id of the sample app indicated with the log line [INFO] Sample App ID: <id>. You'll need it for the sample app configuration.

    [!NOTE]
    This will shut down the container after the setup is complete. You need to start the container again using the command in step 3. If you are using sqlite as the database, then you need to mount a volume to persist the database file and share it between the setup and server run containers.

  3. Run the container

    docker run --rm \
      -p 8090:8090 \
      ghcr.io/asgardeo/thunder:0.107.0

    Optionally if you want to modify the server configurations, you can mount a custom deployment.yaml file. Create a deployment.yaml file in your working directory similar to the deployment.yaml, and mount it as below:

    docker run --rm \
      -p 8090:8090 \
      -v $(pwd)/deployment.yaml:/opt/thunder/repository/conf/deployment.yaml \
      ghcr.io/asgardeo/thunder:0.107.0

    Optionally if you want to use custom configurations or certificates, you can mount them as follows:

    docker run --rm \
      -p 8090:8090 \
      -v $(pwd)/deployment.yaml:/opt/thunder/repository/conf/deployment.yaml \
      -v $(pwd)/certs/server.cert:/opt/thunder/repository/resources/security/server.cert \
      -v $(pwd)/certs/server.key:/opt/thunder/repository/resources/security/server.key \
      ghcr.io/asgardeo/thunder:0.107.0

Try Out the Product

Try out the Developer Console

Follow these steps to access the Developer Console:

  1. Open your browser and navigate to https://localhost:8090/develop.

  2. Log in using the admin credentials created during the initial data setup (admin / admin).

Try Out with the Sample App

To quickly get started with Thunder, you can use the sample app provided with the product. This guide demonstrates how to download and run the sample app, self register a user and try out login to the sample app.

Download and Run the Sample App
  1. Download the sample app from the 0.107.0 release
OS Architecture Download Link
macOS ARM64 (Apple Silicon) sample-app-0.107.0-macos-arm64.zip
macOS x64 (Intel) sample-app-0.107.0-macos-x64.zip
Linux x64 sample-app-0.107.0-linux-x64.zip
Linux ARM64 sample-app-0.107.0-linux-arm64.zip
Windows x64 sample-app-0.107.0-win-x64.zip
  1. Unzip and navigate to the sample app directory

    unzip sample-app-0.107.0-<os>-<arch>.zip
    cd sample-app-0.107.0-<os>-<arch>/
  2. Configure the sample app

    Open app/runtime.json and set applicationID to the sample app ID generated during "Setup the product."

    For example, if the sample app ID is d6df2ef9-88db-4ca9-9a23-d1577b2552c1, runtime.json should look like:

    {
        "applicationID": "d6df2ef9-88db-4ca9-9a23-d1577b2552c1",
        "flowEndpoint": "https://localhost:8090/flow"
    }
    
  3. Start the sample app

    sh start.sh

Open your browser and navigate to https://localhost:3000 to see the sample app in action.

Self Register a User

To self register a user in the sample app, follow these steps:

  1. Open the sample app in your browser at https://localhost:3000 and click on the "Sign up" button.

  2. Provide a username and password for the new user and click on the "Create Account" button.

    Self Registration Username Password

  3. Fill in the additional user attributes such as first name, last name and email address. Click "Continue" to complete the registration.

    Self Registration Additional Details

  4. After successful registration, you will be automatically logged in to the sample application.

Login to the Sample App

To log in to the sample app, follow these steps:

  1. Open the sample app in your browser at https://localhost:3000.

  2. Enter username and password you used during the self registration process and click on the "Sign In" button.

    Login to Sample App

  3. If the login is successful, you will be redirected to the home page of the sample app with the access token.

Try Out Client Credentials Flow

To try out the Client Credentials flow, you first need to obtain a token to access the System APIs of Thunder. Follow these steps:

Replace <application_id> with the sample app ID generated during "Setup the product."

curl -k -X POST 'https://localhost:8090/flow/execute' \
  -d '{"applicationId":"<application_id>","flowType":"AUTHENTICATION", "inputs":{"username":"admin","password":"admin", "requested_permissions":"system"}}'

The response will contain an assertion field.

{"flowId":"<flow_id>","flowStatus":"COMPLETE","data":{},"assertion":"<assertion>"}

The Client Credentials flow is used to obtain an access token for machine-to-machine communication. This flow does not require user interaction and is typically used for server-to-server communication.

To try out the Client Credentials flow, follow these steps:

  1. Create a Client Application

    Create a client application in the system to use for the Client Credentials flow. You can use the following cURL command to create a new application. Replace <assertion> with the assertion value obtained from the previous step.

    curl -kL -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' https://localhost:8090/applications \
    -H 'Authorization: Bearer <assertion>' \
    -d '{
        "name": "Test Sample App",
        "description": "Initial testing App",
        "auth_flow_graph_id": "auth_flow_config_basic",
        "inbound_auth_config": [
            {
                "type": "oauth2",
                "config": {
                    "client_id": "<client_id>",
                    "client_secret": "<client_secret>",
                    "redirect_uris": [
                        "https://localhost:3000"
                    ],
                    "grant_types": [
                        "client_credentials"
                    ],
                    "token_endpoint_auth_method": "client_secret_basic",
                    "pkce_required": false,
                    "public_client": false,
                    "scopes": ["api:read", "api:write"]
                }
            }
        ]
    }'
  2. Obtain an Access Token

    Use the following cURL command to obtain an access token using the Client Credentials flow. Make sure to replace the <client_id> and <client_secret> with the values you used when creating the client application.

    curl -k -X POST https://localhost:8090/oauth2/token \
      -d 'grant_type=client_credentials' \
      -u '<client_id>:<client_secret>'

License

Licenses this source under the Apache License, Version 2.0 (LICENSE), You may not use this file except in compliance with the License.


(c) Copyright 2025 WSO2 LLC.