Questions tagged [meteor-restivus]
10 questions
4
votes
1 answer
How to consume a REST api that needs username/password authentication in node.js
I want to consume a REST api that needs a username/password authentication in node.js. The code that consumes the api is as follows:
var request = require('request');
var url = 'http://localhost:3000/api/v1/login/'
request.get(url,{'auth':…

yusha uzumo
- 211
- 1
- 4
- 15
1
vote
0 answers
Not able to upload image on server using Api in meteor
I am using 'nimble:restivus' package of meteor to create a api for uploading the image.
HTML:
1
vote
0 answers
Module.exports in meteor
I want to use oauth2-server in my meteor project which is an api provider implemented using restivus. In documentation for oauth2-server they specify to require the model in configuration which obviously need to export the model js file. How to use…

Deepak Jose
- 76
- 6
1
vote
1 answer
Meteor REST API access
I am trying to add a REST API to my Meteor application using Restivus
I putted the following code in server folder of my Meteor application. Currently, I am trying to get the URL parameters.
var Api = new Restivus({
useDefaultAuth:…

Anis D
- 761
- 11
- 25
0
votes
1 answer
First Logging in is not required when using meteor restivus
I am using meteor restivus to create a rest api. The issue I have is that the api does not force me to login to do posts and gets
My code is as follows:
Articles = new Mongo.Collection('articles');
if (Meteor.isServer) {
// Global API…

yusha uzumo
- 211
- 1
- 4
- 15
0
votes
1 answer
Meteor Restivus: keep user logged in if he goes to the main website
I have a Chrome extension that communicates with my Meteor app through a REST API created with the Restivus package.
The user authenticates to the REST API and then uses authenticated tokens to make any further requests.
So far, everything works…

Hashcut
- 833
- 1
- 5
- 19
0
votes
0 answers
Optional authentication with Meteor Restivus REST API
I'm using Meteor 1.6 and Restivus v0.8.12 to define a few REST endpoints.
Restivus has only two options for authRequired:
true -> auth is required and API function isn't called otherwise
false -> authorization isn't performed even if credentials…

Hashcut
- 833
- 1
- 5
- 19
0
votes
1 answer
Restivus authentication for Meteor methods
I'm trying to make my meteor-app for REST services available. For this I use the package "Restivus" which also works just fine. But once I'd like to run a meteor method this.userId is undefined.
Api.addRoute('addArticle', {authRequired: true}, {
…

laren0815
- 265
- 1
- 5
- 22
0
votes
1 answer
Not able to find Restivus after having added with meteor add nimble:restivus
I have a functioning Angular2-Meteor installation.
On top of this, I have installed Restivus via the command
meteor add nimble:restivus
The installation does not show any problem.
Following the example found on the Restivus page…

Picci
- 16,775
- 13
- 70
- 113
0
votes
1 answer
Meteor Restivus API call returns "Unauthorized"
I am trying to access Restivus API with Meteor user hashedToken
Here is my code:
Transfer= new Mongo.Collection("transfer");
var Api = new Restivus({
useDefaultAuth: true,
auth: {
token: 'auth.apiKey',
user: function () {
…

Anis D
- 761
- 11
- 25