-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Hello,
I search a Example how we can setup the request authorization.
I think that is in authorizationChecker, but if I thow HttpQueryError that generate a error in output that doesn't send the error code and header.
I have extend the class HttpQueryError to setup default value.
class AuthenticationError extends HttpQueryError {
constructor(
statusCode?: number,
message?: string,
isGraphQLError: boolean = false,
headers?: { [key: string]: string }
) {
super(statusCode||401, message||"Access denied", isGraphQLError, headers || {
'WWW-Authenticate': 'Basic realm="Test Eri"'
});
}
}
Regards.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels