Skip to content
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

Upgrade to newest Meteor and MongoDB, if possible. #36

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Current status

- Originally from https://github.com/sandstorm-io/meteor-accounts-sandstorm
- xet7 added upgrade to newest Meteor 2.11 https://github.com/sandstorm-io/meteor-accounts-sandstorm/pull/36

# Sandstorm.io login integration for Meteor.js

[Sandstorm](https://sandstorm.io) is a platform for personal clouds that makes
Expand All @@ -19,7 +24,7 @@ populated from Sandstorm. When using this package, you should not use
To use this package in your Meteor project, simply install it from the Meteor
package repository:

meteor add kenton:accounts-sandstorm
npm install @wekanteam/accounts-sandstorm

To package a Meteor app for Sandstorm, see
[the Meteor app packaging guide](https://docs.sandstorm.io/en/latest/vagrant-spk/packaging-tutorial-meteor/).
Expand Down Expand Up @@ -131,7 +136,7 @@ For almost all users, 0.2 should be a drop-in replacement for 0.1, only adding
new features. Please note, though, two possible issues:

* If you did not explicitly depend on `accounts-base` before, you must add this
dependency, since it is no longer implied by `accounts-sansdtorm`.
dependency, since it is no longer implied by `accounts-sandstorm`.
* The `/.sandstorm-credentials` endpoint no longer exists. If you were directly
fetching this undocumented endpoint before, you will need to switch your code
to use `Meteor.sandstormUser()`.
8 changes: 4 additions & 4 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@

Package.describe({
summary: "Login service for Sandstorm.io applications",
version: "0.7.0",
name: "kenton:accounts-sandstorm",
git: "https://github.com/sandstorm-io/meteor-accounts-sandstorm.git"
version: "0.8.0",
name: "@wekanteam/accounts-sandstorm",
git: "https://github.com/wekan/meteor-accounts-sandstorm.git"
});

Package.onUse(function(api) {
api.versionsFrom('1.5.1');
api.versionsFrom('2.7');

api.use('random', ['client', 'server']);
api.use('accounts-base', ['client', 'server'], {weak: true});
Expand Down
21 changes: 21 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "@wekanteam/accounts-sandstorm",
"version": "0.8.0",
"description": "Forked Package meteor-accounts-sandstorm",
"main": "dist/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/wekan/meteor-accounts-sandstorm.git"
},
"keywords": [
"meteor",
"accounts",
"sandstorm"
],
"author": "xet7 <https://github.com/xet7>",
"license": "MIT",
"bugs": {
"url": "https://github.com/wekan/meteor-accounts-sandstorm/issues"
},
"homepage": "https://github.com/wekan/meteor-accounts-sandstorm"
}
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if (__meteor_runtime_config__.SANDSTORM) {
// Maps tokens to currently-waiting login method calls.

if (Package["accounts-base"]) {
Meteor.users._ensureIndex("services.sandstorm.id", {unique: 1, sparse: 1});
Meteor.users.createIndex("services.sandstorm.id", {unique: 1, sparse: 1});
}

Meteor.onConnection(function (connection) {
Expand Down