|
|
|
@ -1,7 +1,5 @@
|
|
|
|
|
// 'proxy' auth provider is meant to be used by a reverse proxy that injects permission headers into the origin
|
|
|
|
|
// request. In this case we are relying on our proxy to authenitcate our users and validate.
|
|
|
|
|
const ProxyAuthKey = "proxy";
|
|
|
|
|
|
|
|
|
|
function getProxyPermissions(userHeader, groupHeader, request) {
|
|
|
|
|
const user = userHeader ? request.headers.get(userHeader) : null;
|
|
|
|
|
const groupsString = groupHeader ? request.headers.get(groupHeader) : "";
|
|
|
|
@ -25,7 +23,6 @@ async function fetchProxyAuth([key, context]) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const ProxyAuthProvider = {
|
|
|
|
|
key: ProxyAuthKey,
|
|
|
|
|
create: createProxyAuth,
|
|
|
|
|
fetch: fetchProxyAuth,
|
|
|
|
|
};
|
|
|
|
|