Giter Site home page Giter Site logo

Comments (13)

6twenty avatar 6twenty commented on May 13, 2024

+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.

mbleigh avatar mbleigh commented on May 13, 2024

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.

 avatar commented on May 13, 2024

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.

 avatar commented on May 13, 2024

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.

elmatou avatar elmatou commented on May 13, 2024

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.

mbleigh avatar mbleigh commented on May 13, 2024

@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.

elmatou avatar elmatou commented on May 13, 2024

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.

victorbstan avatar victorbstan commented on May 13, 2024

@ 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.

elmatou avatar elmatou commented on May 13, 2024

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.

victorbstan avatar victorbstan commented on May 13, 2024

@elmatou good one!

from omniauth.

dcu avatar dcu commented on May 13, 2024

any news on this issue guys?

from omniauth.

chrispeterson avatar chrispeterson commented on May 13, 2024

+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.

chrispeterson avatar chrispeterson commented on May 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.