Comments (13)
+1
Unfortunately Microsoft appear to be using a non-standard implementation of the OAuth guidelines, resulting in incompatibility with the OAuth ruby gem. As far as we could tell with our initial research, the issue lies with redirects by Microsoft's authentication server, which the OAuth gem cannot follow. We didn't have the time or resources to dig deeper into this, though.
from omniauth.
I have committed an incomplete implementation to the repository...maybe I'm confused but it seemed like I would have to have a paid account to set up an application and that's more than I'm willing to do. Anyone who's interested is free to take a look.
from omniauth.
Thanks Michael :)
By the way (and for anyone else wondering about this as it's not well documented by Microsoft) you should be able to set up an app without a paid account. I can't remember the exact process we went through, but I believe you can just create a free Windows Live/Hotmail account, then go to https://manage.dev.live.com to set up applications. We did, and we didn't have to pay anything.
from omniauth.
Also, for dev Windows Live apps set the domain to http://0.0.0.0:3000/ -- you'll need to change it in order to make the app 'published', but it allows you to develop the app without having to use a live domain.
from omniauth.
Hi everybody !
Just to confirm what rawnet said, no need to pay anything to create an "application" on live.com, I set up one, and with the committed strategy it offer me to login and send me to my callback. I did'nt get anything in my omniauth.auth rack variable.
I wonder if I can help in setting up this strategy...
from omniauth.
@elmatou the strategy that's been committed is only partially working. If you'd like to take it and build a fully working strategy I would be very happy.
from omniauth.
I will take a look, and come back here if I need help on this.
But for now I'm stuck with this routing Issue, I you have any idea on this ?!
from omniauth.
@ rawnet , you can't set the app to that, if someone else is using that domain name... I have tried with http://0.0.0.0:9393 and got:
The domain you specified as part of your return URL is already in use by another application. If you are the owner of this domain, contact Microsoft Help and Support.
from omniauth.
You should add some private domain to your /etc/hosts file (if you work with any Unix system)
add a line like :
127.0.0.1 www.rails.dev
then if you try to acces www.rails.dev with any software on this machine, it will be redirected by your network interface to 127.0.0.1 which is yout localhost (like 0.0.0.0)
Then set the site url in Microsoft (or twitter, facebook, .....) application setup to www.rails.dev (www.rails.dev:9393 if you use this port)
from omniauth.
@elmatou good one!
from omniauth.
any news on this issue guys?
from omniauth.
+1
Would love to help if I can. I am new to rails, but have experience setting it up with PHP and I am trying to break into the rails community. I was able to use the Server side calls JSON and REST calls with curl on PHP and I would imagine Rails would be much easier. Feel free to ping me if you want to help point me in the right direction or have questions, but the Server Side documentation is fairly straight forward for microsoft.
Microsoft announced OAuth2.0 support for Windows Connect as of May 2011. So maybe the OAuth link would be easier to integrate, but I prefer the Server Side API calls. I am not sure if these links will help you, but here are a few of them. Take a look at these new methods.
Announcement
http://windowsteamblog.com/windows_live/b/developer/archive/2011/05/04/announcing-support-for-oauth-2-0.aspx
Home Page
http://msdn.microsoft.com/en-us/windowslive/default.aspx
New(Free) Application Sign-up
http://go.microsoft.com/fwlink/?LinkId=213332
OAuth 2.0 Documentation
http://msdn.microsoft.com/en-us/library/hh243647.aspx
SERVER SIDE API calls
http://msdn.microsoft.com/en-us/library/hh243649.aspx
from omniauth.
I just submitted a pull request from my branch for this addition. If anyone wants to see the files or add to there own project here you go.
https://github.com/intridea/omniauth/pull/425/files
from omniauth.
Related Issues (20)
- Really confused about implementation HOT 4
- How to configure OmniAuth::AuthenticityTokenProtection for Hanami HOT 1
- Loading strategies from database HOT 1
- Feature Request: sign in with Ethereum HOT 3
- Omniauth failed to detect the url -> Authentication passthru HOT 1
- nil error in `callback_path` after omniauth 2 update HOT 8
- Programatically invoke an omniauth strategy HOT 3
- `Rack::Builder#to_app` is not designed to be called for every request. HOT 18
- CSRF in Rack for callbacks requests
- Compatibility issues with rack-protection 3.x HOT 5
- Add Bake test for devise
- SSO Attlassian -> Gitlab (new user) HOT 1
- Memory leak possible HOT 2
- Allow customization of the login form? HOT 2
- Issues with oauth2 and doorkeeper on callback phase (invalid_request Missing required parameter: client_id) HOT 5
- Request phase - ActionController::InvalidAuthenticityToken even after skip_before_action HOT 1
- why user_response_structure's image have no effect HOT 2
- Need to update rack configuration from 2.2.3 to 2.2.3.1 HOT 1
- rack's executable "rackup" conflicts with rackup HOT 4
- Authentication failure! undefined method 'headers' HOT 1
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 omniauth.