Skip to content
  • Our Product
    • Namazu Elements
      • What is Elements?
      • Why open source?
      • Docs
        • Namazu Elements in Five Minutes or Less
        • RESTful APIs Library
        • Security Model
        • Accessing the Web UI (CMS)

    Our Product

    A logomark with three layered rhombuses adorning the lettermark that says Elements in bold all-caps sans-serif letters.
    • What is Namazu Elements? Discover our easy-to-use backend network solution built for online games. Rapidly enables full-scale multiplayer games or online solo adventures.
    • Why open source? Is there a truly open source server backend for connected games? There is now. Download and run a local copy of Namazu Elements and try it for yourself.
    Download Namazu Elements

    Get started

    • Quick start Read our Elements 5-minute quick start guide
    • Documentation Read our developer docs for learning more about Elements
    • RESTful APIs A full list of core API specs for working with the Elements framework
    • Security An overview of the server-authoritative security model of Elements
    • Accessing the CMS Manage your game with ease via the Namazu Elements CMS.

    Co-development Reimagined

    • Reduce your costs Would you rather outsource your backend development? Hire Namazu Studios to build your server backend with the power of Namazu Elements.
      Co-dev

    Recent Posts

    • The watercolor-styled Namazu Studios logo over a giant namazu lurking in the depth
      Namazu Studios Featured in San Diego Business Journal
      22 Sep 2025 Press
    • Namazu Elements 3.1 Released – Service Layer Fixes, Secure APIs, and Steam Bug Fix
      22 Apr 2025 Release Notes
  • Case Studies
  • About Us
  • News
  • Services
  • Book a call
namazu-studios-logo
Book a call

Getting Started

  • Namazu Elements in Five Minutes or Less
  • Accessing the Web UI (CMS)
  • CMS Feature Overview

Fundamentals

  • Why You Need a Server (and What “Authoritative” Means)
  • Elements as a Game Runtime
  • Where Your Authoritative Code Runs
  • Lifecycles and Flows

General Concepts

  • Overview
  • Custom Elements
  • Data Models
  • Security Model
  • N-Tier Architecture

Namazu Elements Core Features

  • User Authentication / Sign In
    • What is a User?
    • User Authentication in Elements
    • Auth Schemes
      • Auth Schemes
      • OAuth2
      • OIDC
  • Features
    • Applications
    • Sessions
    • Users and Profiles
    • Digital Goods
    • Progress and Missions
    • Progress and Missions (3.4+)
    • Leaderboards
    • Matchmaking – Comprehensive Guide
    • Followers
    • Friends
    • Receipts
    • Reward Issuances
    • Save Data
    • Metadata
    • Metadata (3.4+)
    • Queries
    • Web3
      • Wallets
      • Vaults
      • Omni Chain Support
      • Smart Contracts
        • Smart Contracts
  • Queries
    • Advanced Operators
    • Object Graph Navigation
    • Boolean Queries
    • Base Query Syntax
  • Advanced Operators
    • .name
    • .ref

Your Game Code - Adding Custom Elements

  • Custom Code Overview
  • Windows Setup
  • Mac OS Setup
  • Ubuntu Linux Setup
  • Element Anatomy: A Technical Deep Dive
  • Introduction to Guice and Jakarta in Elements
  • Structuring your Element
  • Events
  • Packaging an Element with Maven
  • Deploying an Element
  • Preparing for code generation
  • Properties
  • Websockets
  • RESTful APIs
  • Direct MongoDB Access (3.5+)

Configuration

  • Matchmaking – Comprehensive Guide
  • Direct Database Access and Batch Configuration
  • Batch Samples
    • Mission Upload Bash Script Sample
    • Item Upload Bash Script Sample

RESTful APIs

  • Importing into Postman
  • RESTful APIs Library
  • Swagger and Swagger UI

Add-Ons

  • Custom Elements
    • Crossplay
      • Namazu Crossfire (Multiplayer)
      • Deploying Namazu Crossfire in your game
  • Game Engines
    • Unity
      • Elements Codegen
      • Crossfire
    • Roblox
      • Roblox Overview
      • Secure Player Authentication & Registration
      • Global Matchmaking
      • Roblox Security Best Practices

Troubleshooting

  • Common Issues with Docker
  • Local SDK
    • Unable to deploy application : dev.getelements.elements.sdk.exception.SdkElementNotFoundException
    • Could not load class : java.lang.NoClassDefFoundError
  • Namazu Elements Community Edition
    • Common Issues with Docker
    • Unable to deploy application : dev.getelements.elements.sdk.exception.SdkElementNotFoundException
    • Running in the IDE
      • Exception in monitor thread while connecting to server localhost:27017
      • Could not deployAvailableApplications Jetty server Failed to bind to /0.0.0.0:8080 Address already in use

Releases

  • 3.6 Release Notes
  • 3.5 Release Notes
  • 3.4 Release Notes
  • 3.3 Release Notes
  • 3.2 Release Notes
  • 3.1 Release Notes
View Categories
  • Home
  • Docs
  • Add-Ons
  • Game Engines
  • Roblox
  • Secure Player Authentication & Registration

Secure Player Authentication & Registration

Est. read time: 4 min read

One of the core features of the Roblox Kit is secure player authentication. When a player first joins your game, a server script can use the kit to authenticate the player with Namazu Elements. This is done via a single HTTP request from a server-side script (using Roblox’s HttpService) to the kit’s authentication endpoint, providing your Namazu Application ID and the player’s Roblox UserId. The result is a session token (called a sessionSecret) that uniquely identifies the player’s session with Namazu Elements. All subsequent requests to Namazu services in this session must include this token for authorization.

This authentication flow doubles as a player registration step – if the player doesn’t already have a Namazu account, the kit will automatically create a new Namazu User and Profile linked to their Roblox user ID. The kit even uses Roblox’s API to fetch basic profile information (like the player’s username or avatar) and populate the Namazu profile on first signup. This means each Roblox player is seamlessly onboarded into Namazu Elements without any additional input or manual account creation. The entire process is designed with security in mind: it runs only on server-side scripts using your Namazu Application Secret (never on the client), so that players cannot tamper with it. Your Application Secret is used to verify the request and should be stored safely in Roblox’s secure Secrets storage, not in any client-facing code. Once authenticated, the player’s session token can be stored server-side (for example, in a variable or server memory) for as long as the player is in game, and used to call other Namazu Element services on behalf of that player. In short, the Roblox Kit provides a secure, Roblox-trusted login mechanism into Namazu’s system: leveraging the player’s Roblox identity and Roblox’s secure server scripts to establish a Namazu session.

Step-by-Step Guide #

The following steps are required to register a Roblox user in Namazu Elements. Once you register a user and obtain a session, you can make API calls against the Namazu Elements API. Creating sessions ensures that users are automatically kept in-sync between Roblox and Namazu Elements.

1. Login to the Management Portal #

Visit your instance of Namazu Elements by pointing our browser to https://your-instance.example.com/admin/

2. Create an Application #

Navigate to Applications → Create Application

📝Architecture Notes

We recommend making a separate Namazu Elements application per Roblox Experience. This ensures that players have unique and independent Profiles per published Experience. See more on Users and Profiles.

3. Deploy the Roblox Kit to the Instance #

At the time of this writing, Namazu Roblox Kit is distributed as a separate Element. Refer to the Custom Code section on how to install the Element to your instance. In addition to the standard deployment process, it is necessary to configure the RobloxKit Secret to ensure secure communication between Roblox’s server and Namazu Elements. To set this, deploy the element with the following configuration set. (Changed <redacted> to a secret of your choice).

📄
dev.getelements.element.attributes.properties
dev.getelements.robloxkit.secret=<redacted>

⚠️ Guard this Secret ⚠️

This secret provides access to your Namazu Elements instance. If it is leaked, change it immediately and update all code. If a malicious third party finds this secret, they can essentially masquerade as any valid Roblox player.

4. Verify Roblox Secret was Set Correctly #

Once deployed, check that the Roblox Kit deployed successfully. Verify:

  • A “Green Light” appears next to the application name in the left bar, indicating successful deployment.
  • There are no errors in the application logs
  • That the configured secret appears in the Management Portal

5. Verify Registration Works Correctly #

Using your preferred RESTful client, make an API call to the instance authorizing a user.

  • HTTP Method: POST
  • URI: /app/rest/roblox/auth
  • Header: RobloxKit-Secrret: <recacted>
  • Body {"robloxUserId":xxxxxxxx, "application":"my_application"}

For quick reference, the following Curl command will test your instance:

curl -d '{"application":"my_app", "robloxUserId":"XXXXXXXXXXXX"}' \
     -H "Content-Type: application/json" \
     -H "RobloxKit-Secret: <redacted>" \
     https://my-instance.example.com/app/rest/roblox/auth

6. Check that the Profile Matching the Roblox Player exists in Namazu Elements #

Navigate to Profiles on the left hand navigation menu and find the profile matching the Roblox user you tested against.

What are your Feelings
Still stuck? How can we help?

How can we help?

Updated on January 30, 2026
Roblox OverviewGlobal Matchmaking
Table of Contents
  • Step-by-Step Guide
    • 1. Login to the Management Portal
    • 2. Create an Application
    • 3. Deploy the Roblox Kit to the Instance
      • 4. Verify Roblox Secret was Set Correctly
    • 5. Verify Registration Works Correctly
    • 6. Check that the Profile Matching the Roblox Player exists in Namazu Elements
  • Documentation
  • Terms of Service
  • Privacy Policy
  • Contact us
  • Linkedin
  • Join our Discord

Namazu Studios LLC is powered by Namazu Elements, an Elemental Computing Inc. product.

Elements
  • Download
  • About Elements
  • Open source
  • Documentation
  • Support
About Namazu
  • Case Studies
  • About Us
  • News
Get in Touch
  • info@namazustudios.com
  • Book a call
  • (619) 862-2890
  • Linkedin
  • Discord

©2008-2025 Namazu Studios. All Rights Reserved.