Custom Meteor Accounts - meteor

I need to implement a new accounts package with trakt.tv service via OAuth2.
How can I use the source of accounts-facebook or other already implemented to create my own?

This already has been answered here, in resume, you need to create a
local package
and take a look into the meteor-accounts-stripe to get the idea about how to create a new OAuth package

If you check out the Meteor Packages at GitHub you can reverse engineer a solution.
Also see the Accounts project page at Meteor.

Related

Is there a way to remove ember-data from emberfire?

My app does not use ember-data, it uses only apollo for graphql to retrieve/manage data.
But after installing emberfire, we must have to install ember-data too.
We just use emberfire/firebase for authentication :)
If I try to remove it I've got an error:
Cannot find module 'ember-data/package.json' from '/Users/bruno/octane-graphql/node_modules/emberfire'
The solution here is simple: don't use emberfire!
Basically the entire concept of emberfire is to intergrate firebase into ember-data. If you just want to use some firebase services use the firebase sdk directly.
emberfire uses ember-data under the hood. So you need to have it installed.

How to integrate jsreport to meteor application

Can anyone help me how to integrate jsreport to meteor application and how to use it to generate pdfs using data from database?
You can use the node package for that.
Link:: here
Don't forget to import the package before use.
You can also check the following example also which is using jsreport-client.
Link:: Here

Meteor Accounts-Base needed

I'm implementing custom user authentication in a Meteor application (so no use of accounts-ui). I have only done 'meteor add accounts-password' and registration/login are working as expected. In lots of tutorials, I also read they are doing a 'meteor add accounts-base' which is something I didn't do specifically, yet it is working.
Why would I need 'accounts-base'? For what functionality?
accounts-base is a dependency of accounts-password, so it's alteady included in your application, there's no need to add it separately. It provides the basic account concepts (Meteor.users collection, for instance) that accounts-password relied on.

Meteor custom oauth package

I'm need a create custom package for using oauth with external service, but have no idea how to make it. I'm tryed to clone accounts-github package into my project and modyfy it, but it not working.
Some code here.
//test.html
<template name = 'test'>
Login
</test>
//test.js
Template.test.events({
'click .gitLogin': function() {
return Meteor.loginWithGithub();
}
});
Error here:
Meteor.loginWithGithub is not a function
My steps for installing accounts-github package:
—clone from repo to app/packages directory
—modifyed name of package in package.js file
—meteor add my:package
—Donewithout any errors
But as you can see it not working.
Main question: how to create or modify existing package to use another oauth provider?
Provider is wargaming.net is not providing secret code like a facebook or google.
p.s. and i'm using windows
There are two packages for each oauth service. The other one has all of the logic related to the service. Check out the github package https://github.com/meteor/meteor/tree/devel/packages/github

Delete created meteor package from atmospherejs

I created a package for atmospherejs.com.
Everything worked as expected but now I want to delete it.
How can I remove it from atmosphere?
I found the following explanation but I guess its not up to date:
https://github.com/oortcloud/atmosphere/issues/53
Prevent packages from showing up in meteor search with meteor admin set-unmigrated. Checkout their blogpost on here.
A new administrative command hides packages from the results of meteor search and meteor show. This is designed to remove mrt-era packages that didn't correctly auto-migrate into the new package system and for cases where authors have changed the name of a package and don't want new developers using the old name. To hide a package, run meteor admin set-unmigrated. Please note that hiding a package does not prevent users from explicitly adding it.
There is no way to do so on the new packageserver as mentioned by tmeasday at the end of the issue.
https://github.com/oortcloud/atmosphere/issues/53#issuecomment-54010716

Categories

Resources