Comments (9)
Would be something interesting! I'm not sure how oauth via Meteor works so I would have to do some digging.
I'm not sure that it would live in this repo or if it would be part of a ddp client module that we use in this repo. Regardless, it's on my radar! Thanks for opening the issue.
from react-native-meteor-boilerplate.
I'm also very curious about these oauth topics.
from react-native-meteor-boilerplate.
+1
from react-native-meteor-boilerplate.
Maybe this could help but I can't integrate it. I hope you can. martijnwalraven/meteor-ios#10
from react-native-meteor-boilerplate.
Hey all - I just wanted to drop a quick update regarding this. I've worked on Google Oauth for a client and am working on turning my learnings into a blog post. It's turned into a monster of a blog post and I'm running into some issues with Android (Android is still very foreign to me) so it may take a little bit longer.
If you're interested the repo is here: https://github.com/spencercarli/react-native-meteor-google-oauth
There's no specific documentation there - that will all come with the blog post. But if anyone is blocked and waiting to see how it can be done then maybe looking at the source code of that repo may help.
I hope to have the detailed blog post out soon!
from react-native-meteor-boilerplate.
nice!
it seems you use the same google auth request for both login and signup? I only ask because the signup method doesn't exist and I've done the same thing, i.e. just one button for both signup and login. I'm assuming you did that for initial demonstration purposes.
...I'm about to implement this for Twitter, so it seems as far as interfacing with Meteor, you just have to get the params
correct--would you say that's the case? What are the params exactly?
let params = {
twitter: {
???: '???',
???: '???',
???: '???',
}
};
Last thing: my plan is to use this multi-auth react native package to get the tokens: https://github.com/adamjmcgrath/react-native-simple-auth
it seems that if we plugged this in, we could get a bunch of auths all at once. Do you think it's as simple as using that, getting the correct tokens, and then passing them to ddpClient.call("login",
??
from react-native-meteor-boilerplate.
You're correct that it uses the same method for sign up and login. That's the pattern I saw with the meteor core packages and seems to be the norm with oauth. You can see how I'm looking up if a user exists from the meteor package.
I'm not sure what all would be needed for Twitter but I would suggest reviewing source for the accounts-twitter
and the twitter
as well as reading the official Twitter docs.
react-native-simple-auth
looks nice and I definitely want to do some deeper research into it. The other major oauth providers are on my list to do further research and document how to get them set up but I don't have a timeline for that yet.
from react-native-meteor-boilerplate.
@faceyspacey are you using https://github.com/adamjmcgrath/react-native-simple-auth yet? Just curious how you're managing the configuration object.
Any concerns with sending secrets to the device?
from react-native-meteor-boilerplate.
Oauth with facebook: https://medium.com/@spencer_carli/react-native-meteor-oauth-with-facebook-3d1346d7cdb7#.pnzlwbt76
Due to the complexities involved with setting up the native dependencies it is not something I'll be adding to the boilerplate.
from react-native-meteor-boilerplate.
Related Issues (20)
- Permission react-native-meteor HOT 2
- Best way to change bottom tabs based on current screen? HOT 4
- Sharing code between the client and the server HOT 1
- Update Boilerplate HOT 1
- Where to hide splash screen ? HOT 2
- iOS Device build successful however DDP fails to connect HOT 2
- Failing in simulation with TransformError HOT 2
- Thoughts on new "Meteor Client Bundler" vs react-native-meteor? HOT 1
- Failed to release in iOS HOT 1
- :-) Thank you for building this, we'll be in touch soon. I appreciate it.
- Failure of App to Register
- check ddp server conection HOT 1
- Unable to resolve module react-native/Libraries/Renderer/shims/ReactNative ... HOT 8
- App crashes in Xcode HOT 3
- Issues getting Meteor data into React Native using createContainer HOT 1
- What would be the best way to change the title by passing a parameter? HOT 1
- Is it possible to implement the login to meteor from react-native without eject HOT 1
- app crashes immediately HOT 3
- Is it possible to use same code for mobile and web and what I need to do. HOT 1
- Is it possible to use this boilerplate to integrate RN to an existing Meteor App? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-meteor-boilerplate.