Miranda IM

Results 1 to 10 of 10

Thread: OAuth support in protocol addon

  1. #1
    Join Date
    February 2008
    Posts
    214

    OAuth support in protocol addon

    Hi guys,

    is there any built-in solution in latest miranda/headers to implement authorization thru OAuth in protocol plugins?
    p.s. my plugin written in delphi ((

    Thanks.
    Last edited by LA_; 19 Jan 2012 at 3:35 PM.

  2. #2
    Join Date
    June 2005
    Posts
    11,839
    It's pretty much does not make sense. Core OAuth is 1 HTTP request... The more complex part is what OAuth is trying to accomplish. The idea is on logon the browser popup and you login, after login completed application is issued code to use for eternity or not. That is not how Miranda traditionally works, can you make it this way... That is up to you and OAuth will not help you.

  3. #3
    Join Date
    February 2008
    Posts
    214
    I don't understand quite well whether I should show standard user's browser (then the question is how to understand when the token is returned and how to get this token) or if it is some miranda's browser?

  4. #4
    Join Date
    April 2005
    Posts
    739
    We don't understand, WHAT you want to do? I mean, exactly. Use OAuth authorization in your plugin for some obscure purpose? You better off ask somewhere else. At http://oauth.net/ for example.

  5. #5
    Join Date
    June 2005
    Posts
    11,839
    Well, the idea behind OAuth that application does not send username and password. User logins on provider webpage and gets the permanent token, then application uses permanent token to get session token (This is what OAuth specification defines, how to get session token from the permanent token). And then protocol performs normal login using session token. As such no login information is stored by application, just the token issued by the website (and this considered much more secure, as permanent token could be revoked at any time). So far what most protocols that use OAuth did (Gadu-Gadu, Facebook, Twitter) they figured out how main login webpage works and get permanent token automatically simulating the browser input, but this functionality is totally outside OAuth protocol.
    Last edited by borkra; 19 Jan 2012 at 8:06 PM.

  6. #6
    Join Date
    February 2008
    Posts
    214
    Heh, I know how OAuth works. I am trying to understand how to show browser and then receive token from miranda. So, you are saying that other protocols just don't show browser and simulate user's input. OK, I think I'll have to follow this approach.

  7. #7
    Join Date
    April 2005
    Posts
    739
    As far as I'm aware, OAuth is authorization protocol, not authentication protocol.

  8. #8
    Join Date
    June 2005
    Posts
    11,839
    Quote Originally Posted by ANR Daemon View Post
    As far as I'm aware, OAuth is authorization protocol, not authentication protocol.
    Yes, that is what we are talking about... How to get this working... As during login one need to perform both actions, no matter how many protocols there are to accomplish this.

  9. #9
    Join Date
    April 2005
    Posts
    739
    I mean, it does not store authentication credentials, nor does it allow to authenticate you in some way.
    It merely authorize access to certain private data for a certain token supposedly not shared with anyone.

    You could imagine it as a box with a lock. You can open the lock by providing a matching key. But that does not mean that you is the original box owner.

  10. #10
    Join Date
    October 2005
    Location
    sydney
    Posts
    914
    probably a bit too late, but if you want have a look at my twitter/miranda plugin. i have hacked together an oauth implementation in miranda. you can find the details in the thread in the protocols forum.

Similar Threads

  1. Twitter with OAuth Discussion v0.0.9.7
    By omniwolf in forum Protocols
    Replies: 387
    Last Post: 6 Aug 2014, 8:33 PM
  2. MSN (Live Messenger) over XMPP using OAuth 2.0
    By hades32 in forum Protocols
    Replies: 1
    Last Post: 8 Oct 2011, 6:20 PM
  3. NateOn protocol support
    By rrlagic in forum Feature Requests
    Replies: 4
    Last Post: 24 May 2009, 2:56 PM
  4. Weather Support addon
    By Spaznut in forum Technical Support
    Replies: 2
    Last Post: 28 Apr 2006, 2:39 PM
  5. Conference support in Yahoo! protocol
    By schizoid in forum Feature Requests
    Replies: 1
    Last Post: 10 Aug 2005, 5:46 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •