check_principal

command
v0.4.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Command check_principal tests Casdoor token principal extraction.

It uses the Kernel authn/casdoor adapter to: 1. Log in to Casdoor with admin/password via OAuth2 password grant 2. Parse the returned JWT using JWKS (auto-discovered from Casdoor) 3. Print the full Principal including SubjectID, Username, OrgID, etc.

Usage:

cd examples/authn-casdoor
go run ./cmd/check_principal -config config.yaml -password "123456"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL