---
title: "Integration with PHP, Python, .NET or Node.js"
description: "Add Block-Auth to a server-rendered app in PHP, Python, .NET or Node.js with the redirect login. Nothing from Block-Auth runs in the browser."
url: "/sdk-integration-server/"
language: "en"
guide: "PHP, Python, .NET, Node.js"
step: "Read first"
---

# PHP, Python, .NET, Node.js

Follow this guide if your pages are rendered on the server, in PHP, Python, .NET or Node.js. At the end your users sign in with Block-Auth and your backend has a verified session for them.

## What you'll build

Everything happens **in your backend**. You don't install anything from Block-Auth in the browser: your pages only need a normal link to sign in and a form to sign out.

Your backend sends the user to the Block-Auth login and receives them back on a callback with a one-time code. It redeems the code with your API secret, gets the user from Block-Auth and creates its own session.

1. Your pages → Your backend: `GET /blockauth/login`
2. Your backend → Block-Auth: `POST /api/auth/authorize`
3. Your backend → Your pages: Redirect to the login
4. Your pages → Block-Auth: The user signs in
5. Block-Auth → Your pages: Back with ?code\&state
6. Your pages → Your backend: `GET /blockauth/callback`
7. Your backend → Block-Auth: `POST /api/auth/token`
8. Block-Auth → Your backend: `{ address, roles }`
9. Your backend → Your pages: Session cookie and redirect

> **Note:** If your frontend is a React, Vue or Angular app, follow the [React, Vue or
> Angular](/sdk-integration-spa.md) guide instead: it adds the sign-in button
> with the widget.

## Prepare your app

1. In the Dashboard, create your application following the [Integration Quickstart](/integration-quickstart.md#applications). As the domain, enter the host your users see (for example `your-app.com`).
2. You set up the keys and the `.env` at the start of the first step, [Install the client](/sdk-integration-server-install.md#env-vars).

Next: [Install the client](/sdk-integration-server-install.md), the first required step.
