2023-02-21 12:14:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
function testAuth(ctx) {
|
2023-02-24 14:40:28 +01:00
|
|
|
var subject = auth.getClaim(ctx, auth.CLAIM_SUBJECT);
|
2023-02-21 12:14:29 +01:00
|
|
|
|
2023-02-24 14:40:28 +01:00
|
|
|
if (subject !== undefined) {
|
|
|
|
throw new Error("subject: expected undefined, got '"+subject+"'");
|
2023-02-21 12:14:29 +01:00
|
|
|
}
|
|
|
|
}
|