Vortex
Start game About this game

About this game

Castle of Keys is an interactive game where each character represents a role in the castle — such as King, Cook, or Servant — and tries to access the correct floors of the tower. Access is not hardcoded in the game, but instead defined through a permission API using Permit.io. Each action is validated in real-time based on the role and the configured policies.

The project combines real hardware (such as RFID cards and biometric readers) with externalized authorization logic, offering a gamified experience to understand how permissions work in the real world.

This game was created as part of the API-First Authorization challenge, promoted by dev.to in collaboration with the Permit.io platform.

Sound credit: Medieval available on Pixabay

see my permition
King They imprisoned us. But my reign returns — and those responsible will pay!
10
see my permition
Queen
9
see my permition
Advisor
6
see my permition
Captain
5
see my permition
Cook
2
see my permition
Servant
1
see my permition
General
8
see my permition
Noble
7
see my permition
Guard
4
see my permition
Blacksmith
3

Drag the cards to the castle in the correct order to unlock access!

1
2
3
4
5
6
7
8
9
10
Time UID Role Door Status
Web Mode