Skip to content
Michael Sievers edited this page Mar 24, 2025 · 1 revision

Keycloak Login Function for TTN Integration

Overview

This document outlines the implementation of a login function that uses Keycloak for authentication. The authentication process is initiated in a browser window, and after a successful login, the function retrieves a custom user field (ttn) from Keycloak to obtain a token for making API calls to The Things Network (TTN).

Prerequisites

  • A Keycloak instance configured with a realm and client

  • A custom user attribute ttn in Keycloak user profiles

  • A TTN account that requires authentication via the ttn token

Clone this wiki locally