Sythe API -- for third party apps/developers

Discussion in 'Community General' started by Sythe, Jan 7, 2013.

Sythe API -- for third party apps/developers
  1. Unread #1 - Jan 7, 2013 at 12:04 PM
  2. Sythe
    Joined:
    Apr 21, 2005
    Posts:
    8,071
    Referrals:
    465
    Sythe Gold:
    5,271
    Discord Unique ID:
    742989175824842802
    Discord Username:
    Sythe
    Dolan Duck Dolan Trump Supporting Business ???
    Poképedia
    Clefairy Jigglypuff
    Who did this to my freakin' car!
    Hell yeah boooi
    Tier 3 Prizebox Toast Wallet User
    I'm LAAAAAAAME Rust Player Mewtwo Mew Live Free or Die Poké Prizebox (42) Dat Boi

    Sythe Join our discord

    test

    Administrator Village Drunk

    Sythe API -- for third party apps/developers

    To any developers,

    We've put together an API which will let sythe.org users authenticate themselves in third party apps without entering their password.

    The system works via tokens which are one use automatically generated passwords.

    A user get a token from Quick Links like so:

    [​IMG]

    [​IMG]

    [​IMG]

    Then the user copy pastes their token into the third party app which you (developer) have made. You then check that they are who they say they are with the script at http://www.sythe.org/checktoken.php?token=token_here

    When a token is run with the script above it is 'used up'. These are one use passwords. The user can generate a new one by repeating steps above.

    Output of the check token script is json, like so:

    Code:
    {"userid":"1","username":"Sythe","usergroupid":"6","joindate":"1114082940","posts":"3819","usertitle":"Director","icq":"","aim":"","yahoo":"","msn":"","skype":"","simple_username":"Sythe"}
    Simple_username field is username with annoying characters stripped (for example if you want a simple version of their username for a chat name or something.) Other fields are self explanatory. Joindate is unixtimestamp, you can look up how to convert those.

    We will be adding more info (such as donation amount/status) later.

    Let me know what you think!

    Cheers,
    Richard
     
  3. Unread #2 - Jan 7, 2013 at 12:38 PM
  4. Emperor Nero
    Joined:
    Jun 11, 2010
    Posts:
    7,159
    Referrals:
    2
    Sythe Gold:
    93
    Discord Unique ID:
    143107588718854144
    Sythe's 10th Anniversary Heidy

    Emperor Nero Hero
    $5 USD Donor New

    Sythe API -- for third party apps/developers

    How long can you stay logged in on a single token? I generally 'stay logged in' from devices that I personally own and don't from school computers and such.
     
  5. Unread #3 - Jan 7, 2013 at 12:40 PM
  6. Sythe
    Joined:
    Apr 21, 2005
    Posts:
    8,071
    Referrals:
    465
    Sythe Gold:
    5,271
    Discord Unique ID:
    742989175824842802
    Discord Username:
    Sythe
    Dolan Duck Dolan Trump Supporting Business ???
    Poképedia
    Clefairy Jigglypuff
    Who did this to my freakin' car!
    Hell yeah boooi
    Tier 3 Prizebox Toast Wallet User
    I'm LAAAAAAAME Rust Player Mewtwo Mew Live Free or Die Poké Prizebox (42) Dat Boi

    Sythe Join our discord

    test

    Administrator Village Drunk

    Sythe API -- for third party apps/developers

    The tokens are not for logging in to sythe.org.
     
  7. Unread #4 - Jan 7, 2013 at 12:42 PM
  8. I_DONT_BOT
    Joined:
    Sep 30, 2009
    Posts:
    9,548
    Referrals:
    25
    Sythe Gold:
    2
    Tier 1 Prizebox

    I_DONT_BOT Free MMing & Sythe Help - PM me
    I_DONT_BOT Donor

    Sythe API -- for third party apps/developers

    I saw this yesterday and wondered what it was for. Is there any programs we can use them for at the moment?
     
  9. Unread #5 - Jan 7, 2013 at 12:49 PM
  10. Add My Msn
    Joined:
    Sep 3, 2010
    Posts:
    9,978
    Referrals:
    0
    Sythe Gold:
    3,555
    Vouch Thread:
    Click Here
    Sythe's 10th Anniversary Top Striker Two Factor Authentication User SytheSteamer In Memory of Jon Dragon Claws Secret Santa Rio 2016 Battleship Champion
    Pool Shark

    Add My Msn Selling OSRS Accounts!
    $50 USD Donor New

    Sythe API -- for third party apps/developers

    Edit: Because Syed is awesome, he explained it all to me.
     
  11. Unread #6 - Jan 7, 2013 at 12:50 PM
  12. Grave
    Joined:
    Jul 12, 2008
    Posts:
    5,305
    Referrals:
    162
    Sythe Gold:
    49,778
    Discord Unique ID:
    895547875277299712
    Discord Username:
    grave#9889
    Pizza Muncher Brony (3) MushyMuncher (2) Le Monkey (2) Not sure if srs or just newfag... Bojack Penguin (2) Wubba Lubba Dub Dub (2) Gohan has AIDS (2) Dunce
    Rust Player I'm LAAAAAAAME Yellow rat

    Grave #1 preferred sexual partner of Ciara "5/5" -New York Times
    $5 USD Donor

    Sythe API -- for third party apps/developers

    I think you should create a page that we can embed with an iFrame, so the visitor to the third party site can view the token readily if they're logged in to Sythe.org
     
  13. Unread #7 - Jan 7, 2013 at 12:55 PM
  14. Sythe
    Joined:
    Apr 21, 2005
    Posts:
    8,071
    Referrals:
    465
    Sythe Gold:
    5,271
    Discord Unique ID:
    742989175824842802
    Discord Username:
    Sythe
    Dolan Duck Dolan Trump Supporting Business ???
    Poképedia
    Clefairy Jigglypuff
    Who did this to my freakin' car!
    Hell yeah boooi
    Tier 3 Prizebox Toast Wallet User
    I'm LAAAAAAAME Rust Player Mewtwo Mew Live Free or Die Poké Prizebox (42) Dat Boi

    Sythe Join our discord

    test

    Administrator Village Drunk

    Sythe API -- for third party apps/developers

    Its easy enough for the app developer to remember who you are once you're authenticated. They just leave a cookie or file (depending on the type of app) and that's that.

    If the tokens weren't one-use then it'd be a massive security flaw.

    Lets say I write an IRC daemon where you can 'prove' you are X on sythe.org by submitting your token. If the token doesn't get used up, then I could record all the tokens the users submit, then go use them on other third party apps.
     
  15. Unread #8 - Jan 7, 2013 at 12:57 PM
  16. Sythe
    Joined:
    Apr 21, 2005
    Posts:
    8,071
    Referrals:
    465
    Sythe Gold:
    5,271
    Discord Unique ID:
    742989175824842802
    Discord Username:
    Sythe
    Dolan Duck Dolan Trump Supporting Business ???
    Poképedia
    Clefairy Jigglypuff
    Who did this to my freakin' car!
    Hell yeah boooi
    Tier 3 Prizebox Toast Wallet User
    I'm LAAAAAAAME Rust Player Mewtwo Mew Live Free or Die Poké Prizebox (42) Dat Boi

    Sythe Join our discord

    test

    Administrator Village Drunk

    Sythe API -- for third party apps/developers

    This is a good idea. If you want to throw something suitable together I'll put it up. I assume you don't want it to look ugly since you'd be embedding it in your app.
     
  17. Unread #9 - Jan 7, 2013 at 1:39 PM
  18. Grave
    Joined:
    Jul 12, 2008
    Posts:
    5,305
    Referrals:
    162
    Sythe Gold:
    49,778
    Discord Unique ID:
    895547875277299712
    Discord Username:
    grave#9889
    Pizza Muncher Brony (3) MushyMuncher (2) Le Monkey (2) Not sure if srs or just newfag... Bojack Penguin (2) Wubba Lubba Dub Dub (2) Gohan has AIDS (2) Dunce
    Rust Player I'm LAAAAAAAME Yellow rat

    Grave #1 preferred sexual partner of Ciara "5/5" -New York Times
    $5 USD Donor

    Sythe API -- for third party apps/developers

    http://sythe.us/authenticator.html

    200 width, 125 height

    (edit) If there are no security issues, why not just have a page that we can automatically grab the token from? That way people don't have to actually copy and paste the token, and developers can just grab it with PHP and automatically include it and plug it into the token check URL? I don't know if I'm missing something here, but I'm sure everyone would prefer that. Maybe a hybrid in between could work as well, where the user has to first accept for it to be automatically used.
     
  19. Unread #10 - Jan 7, 2013 at 2:20 PM
  20. Sythe
    Joined:
    Apr 21, 2005
    Posts:
    8,071
    Referrals:
    465
    Sythe Gold:
    5,271
    Discord Unique ID:
    742989175824842802
    Discord Username:
    Sythe
    Dolan Duck Dolan Trump Supporting Business ???
    Poképedia
    Clefairy Jigglypuff
    Who did this to my freakin' car!
    Hell yeah boooi
    Tier 3 Prizebox Toast Wallet User
    I'm LAAAAAAAME Rust Player Mewtwo Mew Live Free or Die Poké Prizebox (42) Dat Boi

    Sythe Join our discord

    test

    Administrator Village Drunk

    Sythe API -- for third party apps/developers

    Thanks
    If you (developer) could grab a token for any user without that user's consent then it would defeat the purpose. The token is supposed to be a one use password that proves the user is who they say they are to a third party app.

    And if you mean why not have the token jump from the iframe into the app by itself -- you can't. Violates XSS browser rules.

    As to just having a button in an iframe that says "Authorize", that's oAuth type stuff. We might put that in later. Tokens are easier to implement for the moment for many apps.

    For most apps you should only need the user to put in a token once (i.e. on signup) then keep your own records and user accounts.
     
  21. Unread #11 - Jan 7, 2013 at 2:23 PM
  22. Clashfan
    Joined:
    Sep 2, 2005
    Posts:
    3,973
    Referrals:
    1
    Sythe Gold:
    1
    Two Factor Authentication User

    Clashfan Swim To The Moon
    Highly Respected Retired Administrator

    Sythe API -- for third party apps/developers

    Is this based on the token system you wrote for the official IRC a few years back? Thanks for putting this together.
     
  23. Unread #12 - Jan 7, 2013 at 2:24 PM
  24. Sythe
    Joined:
    Apr 21, 2005
    Posts:
    8,071
    Referrals:
    465
    Sythe Gold:
    5,271
    Discord Unique ID:
    742989175824842802
    Discord Username:
    Sythe
    Dolan Duck Dolan Trump Supporting Business ???
    Poképedia
    Clefairy Jigglypuff
    Who did this to my freakin' car!
    Hell yeah boooi
    Tier 3 Prizebox Toast Wallet User
    I'm LAAAAAAAME Rust Player Mewtwo Mew Live Free or Die Poké Prizebox (42) Dat Boi

    Sythe Join our discord

    test

    Administrator Village Drunk

    Sythe API -- for third party apps/developers

    No. Similar idea but different implementation.
     
  25. Unread #13 - Jan 7, 2013 at 2:28 PM
  26. Sythe
    Joined:
    Apr 21, 2005
    Posts:
    8,071
    Referrals:
    465
    Sythe Gold:
    5,271
    Discord Unique ID:
    742989175824842802
    Discord Username:
    Sythe
    Dolan Duck Dolan Trump Supporting Business ???
    Poképedia
    Clefairy Jigglypuff
    Who did this to my freakin' car!
    Hell yeah boooi
    Tier 3 Prizebox Toast Wallet User
    I'm LAAAAAAAME Rust Player Mewtwo Mew Live Free or Die Poké Prizebox (42) Dat Boi

    Sythe Join our discord

    test

    Administrator Village Drunk

    Sythe API -- for third party apps/developers

    Cookies do not work this way.

    Almost every website on the internet uses cookies including this one (hence not having to login every 3 seconds). And they do ok.

    That is true. So some level of trust should exist between the user and app developer. Tokens expire automatically after 30 minutes.
     
  27. Unread #14 - Jan 7, 2013 at 2:47 PM
  28. Sythe
    Joined:
    Apr 21, 2005
    Posts:
    8,071
    Referrals:
    465
    Sythe Gold:
    5,271
    Discord Unique ID:
    742989175824842802
    Discord Username:
    Sythe
    Dolan Duck Dolan Trump Supporting Business ???
    Poképedia
    Clefairy Jigglypuff
    Who did this to my freakin' car!
    Hell yeah boooi
    Tier 3 Prizebox Toast Wallet User
    I'm LAAAAAAAME Rust Player Mewtwo Mew Live Free or Die Poké Prizebox (42) Dat Boi

    Sythe Join our discord

    test

    Administrator Village Drunk

    Sythe API -- for third party apps/developers

  29. Unread #15 - Jan 8, 2013 at 1:54 PM
  30. Syed
    Joined:
    Jan 22, 2009
    Posts:
    9,857
    Referrals:
    1
    Sythe Gold:
    11
    Sythe Awards 2012 Winner Gohan has AIDS (3) ??? Rust Player I'm LAAAAAAAME (2) Shitting Rainbow (2)

    Syed Hero
    Retired Sectional Moderator $50 USD Donor New

    Sythe API -- for third party apps/developers

    Good idea, but why is this in the suggestions forum? -.-

    I was deciding on whether or not to add this to Phrashed's services as an anope module.

    Something like /ns auth token and it would store a little line in their whois info.

    Syed is [email protected] *
    Syed is a Network Administrator
    Syed is Ix Syed xI on Sythe.org

    But I decided against it, mainly because of the amount of work for the payoff, but it's great knowing that if I ever do make anything similar, I could use this to authenticate Sythe users.
     
  31. Unread #16 - Jan 8, 2013 at 1:58 PM
  32. I_DONT_BOT
    Joined:
    Sep 30, 2009
    Posts:
    9,548
    Referrals:
    25
    Sythe Gold:
    2
    Tier 1 Prizebox

    I_DONT_BOT Free MMing & Sythe Help - PM me
    I_DONT_BOT Donor

    Sythe API -- for third party apps/developers

    Seeing as trading isn't something that happens on IRC, I can't really see a use for it being coded in other than people chatting shit claiming to be members, but mods can run a quick I.P check to see if it is them tbh.
     
  33. Unread #17 - Jan 8, 2013 at 4:56 PM
  34. Matthew
    Joined:
    Nov 12, 2005
    Posts:
    5,153
    Referrals:
    42
    Sythe Gold:
    5,377
    Wait, do you not have an Archer rank? (5) Doge (3) Smashing Why is there BACON in the SOAP!? Literally nothing I saw Matthew Live Free or Die (3) Cool Kid (6) Poképedia Homosex (4)

    Matthew Probably breaking stuff

    Sythe API -- for third party apps/developers

    Here's an example for anyone nosy or curious:

    http://servicepanelpro.com/panel/

    Note: Your login attempts will fail since you don't have an account. But it illustrates the concept.
     
  35. Unread #18 - Jan 9, 2013 at 5:45 AM
  36. Yenthe666
    Joined:
    Apr 10, 2011
    Posts:
    1,013
    Referrals:
    0
    Sythe Gold:
    0

    Yenthe666 Guru
    Banned

    Sythe API -- for third party apps/developers

    ^ I'm not sure if you will use this page for real purposes or not.
    But you should make it so that a click on the textbox would copy the code automatically. (Like you would do a CTRL+C)
    Thats easier for the user? :)
     
  37. Unread #19 - Jan 9, 2013 at 9:22 AM
  38. Matthew
    Joined:
    Nov 12, 2005
    Posts:
    5,153
    Referrals:
    42
    Sythe Gold:
    5,377
    Wait, do you not have an Archer rank? (5) Doge (3) Smashing Why is there BACON in the SOAP!? Literally nothing I saw Matthew Live Free or Die (3) Cool Kid (6) Poképedia Homosex (4)

    Matthew Probably breaking stuff

    Sythe API -- for third party apps/developers

    That's actually more complicated than you would think because a lot of browser's handle the clipboard differently. I did already make it so when you click the token it highlights automatically...
     
  39. Unread #20 - Jan 9, 2013 at 10:12 AM
  40. Noam
    Joined:
    Jul 27, 2011
    Posts:
    2,993
    Referrals:
    1
    Sythe Gold:
    0
    Discord Unique ID:
    688859853535313930
    Discord Username:
    sarbaz#8969
    Two Factor Authentication User Gohan has AIDS

    Noam Apostle of the Setting Sun
    $50 USD Donor New Competition Winner

    Sythe API -- for third party apps/developers

    You could do it with flash if I remember correctly
    Either way most of them don't support clipboard commands through JS.
     
< Are you sure your thread belongs here? READ ME! | Iggsale >

Users viewing this thread
1 guest


 
 
Adblock breaks this site