Skip to content

Mainenance mode {preview} #422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/actions/_/me.js
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ async function Me({ auth }) {
return { id, mfa, metadata };
}

Me.readonly = true;
Me.auth = {
name: 'bearer',
strategy: 'required',
1 change: 1 addition & 0 deletions src/actions/getInternalData.js
Original file line number Diff line number Diff line change
@@ -28,4 +28,5 @@ module.exports = function internalData({ params }) {
));
};

module.exports.readonly = true;
module.exports.transports = [ActionTransport.amqp, ActionTransport.internal];
1 change: 1 addition & 0 deletions src/actions/getMetadata.js
Original file line number Diff line number Diff line change
@@ -100,6 +100,7 @@ async function getMetadataAction(request) {
return unnest(response);
}

getMetadataAction.readonly = true;
getMetadataAction.transports = [ActionTransport.amqp, ActionTransport.internal];

module.exports = getMetadataAction;
1 change: 1 addition & 0 deletions src/actions/invite-list.js
Original file line number Diff line number Diff line change
@@ -54,4 +54,5 @@ module.exports = function iterateOverInvites(request) {
}));
};

module.exports.readonly = true;
module.exports.transports = [require('@microfleet/core').ActionTransport.amqp];
1 change: 1 addition & 0 deletions src/actions/isReferral.js
Original file line number Diff line number Diff line change
@@ -39,4 +39,5 @@ module.exports = function isReferral({ params }) {
.catchReturn(false);
};

module.exports.readonly = true;
module.exports.transports = [require('@microfleet/core').ActionTransport.amqp];
1 change: 1 addition & 0 deletions src/actions/list.js
Original file line number Diff line number Diff line change
@@ -161,4 +161,5 @@ module.exports = function iterateOverActiveUsers({ params }) {
.then(keyOnly ? passThrough : fetchUserData);
};

module.exports.readonly = true;
module.exports.transports = [ActionTransport.amqp, ActionTransport.internal];
1 change: 1 addition & 0 deletions src/actions/mfa/generate-key.js
Original file line number Diff line number Diff line change
@@ -44,6 +44,7 @@ function generateKey({ auth, params }) {
return response;
}

generateKey.readonly = true;
generateKey.auth = 'httpBearer';
generateKey.transports = [ActionTransport.http, ActionTransport.amqp, ActionTransport.internal];
generateKey.transportOptions = {
1 change: 1 addition & 0 deletions src/actions/mfa/verify.js
Original file line number Diff line number Diff line change
@@ -24,6 +24,7 @@ function verify() {
return { valid: true };
}

verify.readonly = true;
verify.mfa = MFA_TYPE_REQUIRED;
verify.allowed = checkMFA;
verify.transports = [ActionTransport.amqp, ActionTransport.internal];
1 change: 1 addition & 0 deletions src/actions/organization/get.js
Original file line number Diff line number Diff line change
@@ -36,6 +36,7 @@ async function getOrganization({ params }) {
};
}

getOrganization.readonly = true;
getOrganization.allowed = checkOrganizationExists;
getOrganization.transports = [ActionTransport.amqp, ActionTransport.internal];
module.exports = getOrganization;
1 change: 1 addition & 0 deletions src/actions/organization/getMetadata.js
Original file line number Diff line number Diff line change
@@ -28,5 +28,6 @@ async function organizationMetadata({ params }) {
}

organizationMetadata.allowed = checkOrganizationExists;
organizationMetadata.readonly = true;
organizationMetadata.transports = [ActionTransport.amqp, ActionTransport.internal];
module.exports = organizationMetadata;
1 change: 1 addition & 0 deletions src/actions/organization/list.js
Original file line number Diff line number Diff line change
@@ -83,4 +83,5 @@ async function getOrganizationsList({ params }) {
}

getOrganizationsList.transports = [ActionTransport.amqp, ActionTransport.internal];
module.exports.readonly = true;
module.exports = getOrganizationsList;
1 change: 1 addition & 0 deletions src/actions/token/list.js
Original file line number Diff line number Diff line change
@@ -92,6 +92,7 @@ function listTokens({ params }) {
.then(getList);
}

listTokens.readonly = true;
listTokens.transports = [require('@microfleet/core').ActionTransport.amqp];

module.exports = listTokens;
1 change: 1 addition & 0 deletions src/actions/verify.js
Original file line number Diff line number Diff line change
@@ -84,4 +84,5 @@ function Verify({ params }) {

Verify.transports = [ActionTransport.amqp, ActionTransport.internal];

module.exports.readonly = true;
module.exports = Verify;