Skip to content

mstn/accounts-openstreetmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenStreetMap OAuth with Meteor Accounts.

Getting started

Add the package to your Meteor project

$ meteor add mstn:accounts-openstreetmap

Get a customer key and a secret from OSM. Add them to the Meteor application.

// on the server
Meteor.startup( function() {
    ServiceConfiguration.configurations.upsert(
      { service: 'openstreetmap' },
      {
        $set: {
          secret: 'SECRET',
          consumerKey: 'KEY',
          loginStyle: 'redirect'
        }
      }
    );
});

And login!

// on the client
Meteor.loginWithOpenstreetmap();

The access token for OSM API is available only on the server side in the user object.

About

Login service for OpenStreetMap accounts in Meteor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published