NATION

PASSWORD

NationStates++ | Extension for NationStates

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.

Advertisement

Remove ads

User avatar
Singpu
Ambassador
 
Posts: 1233
Founded: Apr 07, 2013
Ex-Nation

Postby Singpu » Sun Jul 21, 2013 6:09 pm

What about using OpenID to verify? That's the very purpose of OpenID, after all.
http://forum.nationstates.net/viewtopic.php?p=9230172#p9230172

Singpu wrote...
:o
Utceforp wrote:
Singpu wrote:Utceforp, can ezungal go ahead and go to girls? Also, sorry if my sleeping is off and reading noticeably, eye doctor dialatsted my eyes so...

I'm sorry, but I can't tell what you're saying...

Translation: utceforp, can ezungal go ahead and goto Farla? Also, sorry if my typing and reading is off noticeably, my eye doctor dialated my eyes, so...

http://forum.nationstates.net/viewtopic.php?ns=1&f=23&t=338724

Liberal|Pro-Capitalism|Pro Homosexual Marriage|

User avatar
Afforess
Ambassador
 
Posts: 1105
Founded: Jun 22, 2009
Ex-Nation

Postby Afforess » Sun Jul 21, 2013 6:14 pm

Singpu wrote:What about using OpenID to verify? That's the very purpose of OpenID, after all.

Users still have to create a separate OpenID account and link it with their nationstates. Maybe if NationStates accounts were an account provider, and all users automatically had an account, I could use it.

Edit: I don't really need a massively over-engineered solution either. Just way to verify that if someone tries to retrieve or set data based on a nation name, that I can verify that they are who they say they are. The simplest idea I have is something like the existing chk value, except public. A user's 'id value' is on a hidden field in every page. When they send a request to me to modify data, my server calls nationstates.net/nation=testlandia/idvalue and that page has the SHA256 HASH of the current user id value. if the SHA256(user id value) sent to my server == nationstates.net public hash, I can verify the nation.

Heck, you can probably use the existing chk values. Just make a public facing url for the SHA256 or some similar one-way checksum of a nation, and I can verify the user chk == public hash.
Last edited by Afforess on Sun Jul 21, 2013 6:35 pm, edited 5 times in total.
Minister of the Interior, Capitalist Paradise

The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Sun Jul 21, 2013 10:04 pm

Afforess wrote:Edit: I don't really need a massively over-engineered solution either. Just way to verify that if someone tries to retrieve or set data based on a nation name, that I can verify that they are who they say they are.

How about I create a page that displays a checksum when visited by a logged-in nation, and an API call that lets anyone supply a nation name + checksum and be told whether that's a valid combination for a logged-in nation. The checksum would cease to be valid once the nation logged out.

It would be like chk but of no use for XSS attacks. Other 3rd-party sites could use it too.

User avatar
Afforess
Ambassador
 
Posts: 1105
Founded: Jun 22, 2009
Ex-Nation

Postby Afforess » Sun Jul 21, 2013 10:11 pm

[violet] wrote:
Afforess wrote:Edit: I don't really need a massively over-engineered solution either. Just way to verify that if someone tries to retrieve or set data based on a nation name, that I can verify that they are who they say they are.

How about I create a page that displays a checksum when visited by a logged-in nation, and an API call that lets anyone supply a nation name + checksum and be told whether that's a valid combination for a logged-in nation. The checksum would cease to be valid once the nation logged out.

It would be like chk but of no use for XSS attacks. Other 3rd-party sites could use it too.

Sounds good. Let me know when/if you get this up and I'll switchover ASAP.
Last edited by Afforess on Sun Jul 21, 2013 10:12 pm, edited 1 time in total.
Minister of the Interior, Capitalist Paradise

The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.

User avatar
Planeia
Ambassador
 
Posts: 1873
Founded: Jan 06, 2013
Ex-Nation

Postby Planeia » Mon Jul 22, 2013 1:55 pm

It doesn't seem to updating my telegrams, I still have to refresh or go to a different page.
Paradise has Fallen

User avatar
Afforess
Ambassador
 
Posts: 1105
Founded: Jun 22, 2009
Ex-Nation

Postby Afforess » Mon Jul 22, 2013 2:32 pm

Planeia wrote:It doesn't seem to updating my telegrams, I still have to refresh or go to a different page.

Easy way to show it works:

Open your nation in 1 tab. Open your telegrams page in another tab. In your telegrams tab, compose a new telegram to yourself. Send it, and then close the telegram tab without reading the new telegram. If you wait a few seconds, your nation tab will show you have 1 telegram.

I just tested it. It works.
Minister of the Interior, Capitalist Paradise

The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Mon Jul 22, 2013 5:12 pm

Afforess wrote:
[violet] wrote:How about I create a page that displays a checksum when visited by a logged-in nation, and an API call that lets anyone supply a nation name + checksum and be told whether that's a valid combination for a logged-in nation. The checksum would cease to be valid once the nation logged out.

It would be like chk but of no use for XSS attacks. Other 3rd-party sites could use it too.

Sounds good. Let me know when/if you get this up and I'll switchover ASAP.

I've added this: details in the API documentation (may need an F5 to refresh).

So nations can generate authentication codes via this page and 3rd-party sites can verify them via the API.

In this particular case, your extension could grab the authentication code itself (perhaps using the lightweight version of the page) without requiring the user to do anything.

User avatar
Afforess
Ambassador
 
Posts: 1105
Founded: Jun 22, 2009
Ex-Nation

Postby Afforess » Mon Jul 22, 2013 5:21 pm

Awesome! Digging into it now.
Minister of the Interior, Capitalist Paradise

The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.

User avatar
Afforess
Ambassador
 
Posts: 1105
Founded: Jun 22, 2009
Ex-Nation

Postby Afforess » Mon Jul 22, 2013 6:12 pm

[violet] wrote:
Afforess wrote:Sounds good. Let me know when/if you get this up and I'll switchover ASAP.

I've added this: details in the API documentation (may need an F5 to refresh).

So nations can generate authentication codes via this page and 3rd-party sites can verify them via the API.

In this particular case, your extension could grab the authentication code itself (perhaps using the lightweight version of the page) without requiring the user to do anything.

Everything looks good. I have updated my server and disabled the authentication bot. Now nations make a post request to www.capitalistparadise.com/api/firebase/ with their nation name and authcode. I check the authcode, and then generate a firebase token to reply with. The extension has also been updated to use this new system, it's much faster now.
Minister of the Interior, Capitalist Paradise

The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.

User avatar
Thori
Lobbyist
 
Posts: 24
Founded: Jul 14, 2013
Inoffensive Centrist Democracy

Postby Thori » Tue Jul 23, 2013 7:13 am

I'm on Google Chrome 18.0.1025.142 m on a PC with Windows 8 right now. I can't install the extension.
The Dominion of Thori
Thorium

User avatar
Afforess
Ambassador
 
Posts: 1105
Founded: Jun 22, 2009
Ex-Nation

Postby Afforess » Tue Jul 23, 2013 7:32 am

Thori wrote:I'm on Google Chrome 18.0.1025.142 m on a PC with Windows 8 right now. I can't install the extension.

Google Chrome 22 is the minimum supported version. Google chrome is at version 28.
Minister of the Interior, Capitalist Paradise

The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.

User avatar
Radiatia
Powerbroker
 
Posts: 8394
Founded: Oct 25, 2011
Ex-Nation

Postby Radiatia » Tue Jul 23, 2013 11:11 pm

I've noticed the Firefox version seems to have suddenly stopped working for no apparent reason. Everything was awesome and then suddenly, nothing.

EDIT: Never mind, I just re-downloaded it and now it's better than ever!
Last edited by Radiatia on Tue Jul 23, 2013 11:12 pm, edited 1 time in total.

User avatar
Shantak-kun
Political Columnist
 
Posts: 2
Founded: Apr 24, 2013
Ex-Nation

Postby Shantak-kun » Thu Jul 25, 2013 5:25 am

When can we expect a safari add-on?

User avatar
Frisbeeteria
Senior Game Moderator
 
Posts: 27796
Founded: Dec 16, 2003
Capitalizt

Postby Frisbeeteria » Thu Jul 25, 2013 8:30 am

Shantak-kun wrote:When can we expect a safari add-on?

You should at least glance at the thread before repeating questions that have been asked before.

Afforess wrote:
Kalosia wrote:When can we expect a Safari version?

After it happens. I don't give ETA's because I never can predict.

User avatar
Afforess
Ambassador
 
Posts: 1105
Founded: Jun 22, 2009
Ex-Nation

Postby Afforess » Thu Jul 25, 2013 8:52 am

Shantak-kun wrote:When can we expect a safari add-on?

I am blocked from working on it. The Apple Developer center was hacked a week ago and has been taken down. I can not set up a Safari extension until it is back up: https://developer.apple.com/support/system-status/
Minister of the Interior, Capitalist Paradise

The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.

User avatar
Economa Incorporated
Ambassador
 
Posts: 1130
Founded: Jan 31, 2013
Capitalist Paradise

Postby Economa Incorporated » Thu Jul 25, 2013 9:33 am

Bookmarked this a bit back, and just installed it after some people I know were complaining about copy-pasting RMB links, so I could try and then recommend it. Love it! Thanks for making my life easier. Probably my favorite feature is the puppet switcher, as it simplifies it to a one-click deal.

Thanks again from a satisfied customer!

I will recommend to my friends.
I tried so hard, and got so far, but in The End, it doesn't even matter.

TG me for any questions about my nation, mistakes or info inquires in an RP, or whatever else, anytime!

Proud rarity! A sane living resident of Black Mesa Islands! Sus and I, two sides of the same coin, until Chernobyl stops glowing. Cheeki Breeki, Comrade!

Loving member of Madhouse Productions.

User avatar
The Republic of Lanos
Post Marshal
 
Posts: 17727
Founded: Apr 17, 2009
Ex-Nation

Postby The Republic of Lanos » Thu Jul 25, 2013 12:15 pm

Happy to say that my "add-ons not starting up when starting Firefox" issue was resolved by a full system factory restore. >_> Aside from saving all my data, Firefox works perfectly.

User avatar
Leutria
Ambassador
 
Posts: 1724
Founded: Oct 29, 2012
Left-wing Utopia

Postby Leutria » Fri Jul 26, 2013 1:52 pm

Could it be made so you still have the message box after leaving a message on the RMB? Or at least have something to click to open it again?

User avatar
The United Soviet Socialist Republic
Post Marshal
 
Posts: 17944
Founded: Aug 10, 2011
Ex-Nation

Postby The United Soviet Socialist Republic » Fri Jul 26, 2013 6:40 pm

I would love this....If I used Chrome or FireFox. I use Opera.
Gay and Proudand also a brony
Political Compass:Left: 7.76, Authoritarian: 5.6
I am: Fascist/Corporatist on economy,
Conservative on social issues(Support same sex marriage),
Anti secularist on religion,
Anti-Republican on government,
Interventionist/Imperialist on international issues

User avatar
Leutria
Ambassador
 
Posts: 1724
Founded: Oct 29, 2012
Left-wing Utopia

Postby Leutria » Fri Jul 26, 2013 7:23 pm

You could go to this page and add the idea of Opera support. I bet if a lot of people vote for it Afforess would look into it.

User avatar
The United Soviet Socialist Republic
Post Marshal
 
Posts: 17944
Founded: Aug 10, 2011
Ex-Nation

Postby The United Soviet Socialist Republic » Fri Jul 26, 2013 7:26 pm

Leutria wrote:You could go to this page and add the idea of Opera support. I bet if a lot of people vote for it Afforess would look into it.

Only around 1% of Internet users use Opera, I doubt many people would vote for the idea.
Gay and Proudand also a brony
Political Compass:Left: 7.76, Authoritarian: 5.6
I am: Fascist/Corporatist on economy,
Conservative on social issues(Support same sex marriage),
Anti secularist on religion,
Anti-Republican on government,
Interventionist/Imperialist on international issues

User avatar
Leutria
Ambassador
 
Posts: 1724
Founded: Oct 29, 2012
Left-wing Utopia

Postby Leutria » Fri Jul 26, 2013 7:37 pm

5.45% of Wikimedia visitors as of June 2013, not much, but still something. I use Firefox, so I am indifferent :P

User avatar
Verbluffen III
Senator
 
Posts: 4943
Founded: Apr 21, 2013
Ex-Nation

Postby Verbluffen III » Fri Jul 26, 2013 7:37 pm

Could this possibly work for IOS?
Vice Director of the Transversal Red Cross
helloeveryonehowareyou
helloeveryonehowareyou
helloeveryonehowareyou
The Bundesrepublik of Verbluffen

Proud Founder of the NationStates Nationalist Socialist Party!!
Senator for The National Liberal Party
Everybody's Favorite Nationalist Socialist!

User avatar
TaQud
Post Marshal
 
Posts: 15959
Founded: Apr 01, 2010
Ex-Nation

Postby TaQud » Fri Jul 26, 2013 7:46 pm

Verbluffen III wrote:Could this possibly work for IOS?

again,
Afforess wrote:
Shantak-kun wrote:When can we expect a safari add-on?

I am blocked from working on it. The Apple Developer center was hacked a week ago and has been taken down. I can not set up a Safari extension until it is back up: https://developer.apple.com/support/system-status/
CENTRIST Economic Left/Right: 0.62 Social Libertarian/Authoritarian: -0.46
List Your Sexuality, nickname(s), NSG Family and Friends, your NS Boyfriend or Girlfriend, gender, favorite quotes and anything else that shows your ego here.
(Because I couldn't live without knowing who was part of NSG Family or what your nickname was. I was panicking for days! I couldn't eat, I couldn't sleep I was so worried that I'd would never know and have to live without knowing this! /sarcasm)
2013 Best signature Award

User avatar
Verbluffen III
Senator
 
Posts: 4943
Founded: Apr 21, 2013
Ex-Nation

Postby Verbluffen III » Fri Jul 26, 2013 7:48 pm

TaQud wrote:
Verbluffen III wrote:Could this possibly work for IOS?

again,
Afforess wrote:I am blocked from working on it. The Apple Developer center was hacked a week ago and has been taken down. I can not set up a Safari extension until it is back up: https://developer.apple.com/support/system-status/


DARNIT.
Vice Director of the Transversal Red Cross
helloeveryonehowareyou
helloeveryonehowareyou
helloeveryonehowareyou
The Bundesrepublik of Verbluffen

Proud Founder of the NationStates Nationalist Socialist Party!!
Senator for The National Liberal Party
Everybody's Favorite Nationalist Socialist!

PreviousNext

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Bears Armed, East Chimore, Equestria-Atlantia, Lgengia, North American Imperial State, Riano, Sallardaria, Tamocordia, Three Galaxies, Torkeland, Yuspuize

Advertisement

Remove ads