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