9 lines
177 B
JavaScript
9 lines
177 B
JavaScript
|
|
||
|
|
||
|
function testAuth(ctx) {
|
||
|
var subject = auth.getSubject(ctx);
|
||
|
|
||
|
if (subject !== "jdoe") {
|
||
|
throw new Error("subject: expected 'jdoe', got '"+subject+"'");
|
||
|
}
|
||
|
}
|