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"
Click to show internal directories.
Click to hide internal directories.