NATION

PASSWORD

NationStates OAuth (or similiar service?)

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Afforess
Ambassador
 
Posts: 1105
Founded: Jun 22, 2009
Ex-Nation

NationStates OAuth (or similiar service?)

Postby Afforess » Wed Mar 20, 2013 6:17 am

Just a crazy idea, I'd love to set up regional forums or other websites that could directly integrate with player's NationStates identity, instead of having them create yet another duplicate account. OAuth seems the obvious choice, but anything that worked similarly would be fine too.

Any ideas if this is already possible, or considered?
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
Vladisvok Destino
Envoy
 
Posts: 333
Founded: Aug 01, 2012
Ex-Nation

Postby Vladisvok Destino » Wed Mar 20, 2013 6:34 am

[Violet] did briefly cover the point of OAuth here and here.
Last edited by Vladisvok Destino on Wed Mar 20, 2013 6:39 am, edited 2 times in total.
When plumbing the depths of depravity, I must remember to come up for air.

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

Postby Afforess » Wed Mar 20, 2013 7:55 am

Vladisvok Destino wrote:[Violet] did briefly cover the point of OAuth here and here.

Interesting find. Any idea if any progress was made, or is it still in the concept phase?
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
SalusaSecondus
Senior Admin
 
Posts: 354
Founded: Jun 12, 2003
Father Knows Best State

Postby SalusaSecondus » Wed Mar 20, 2013 8:52 am

While we do not (currently) support OAuth, we do support OpenID which may do what you want. Take a look at the bottom of your nation's settings page.

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

Postby Afforess » Wed Mar 20, 2013 4:09 pm

SalusaSecondus wrote:While we do not (currently) support OAuth, we do support OpenID which may do what you want. Take a look at the bottom of your nation's settings page.


Hm, just OpenID delegation it seems, and it requires effort on the part of the user (bad!). Am I wrong in this assessment?
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
SalusaSecondus
Senior Admin
 
Posts: 354
Founded: Jun 12, 2003
Father Knows Best State

Postby SalusaSecondus » Wed Mar 20, 2013 5:51 pm

Afforess wrote:
SalusaSecondus wrote:While we do not (currently) support OAuth, we do support OpenID which may do what you want. Take a look at the bottom of your nation's settings page.


Hm, just OpenID delegation it seems, and it requires effort on the part of the user (bad!). Am I wrong in this assessment?


That is correct, however there are many providers out there which people already have including Google, LiveJournal, Yahoo!, and others. As there has been no significant call for any authentication functionality, we're sticking with the simplest solution for now.

User avatar
Laevendell
Envoy
 
Posts: 220
Founded: Jan 29, 2011
Left-wing Utopia

Postby Laevendell » Thu Mar 21, 2013 5:26 pm

I'm new to OpenID, but if a user enters their server and delegate information in the settings page, does that mean they'd then be able to log in to another website using the OpenID "www.nationstates.net/nation=Laevendell" (in my case) or would the OpenID be something else (or have I quite misunderstood how the delegation works)?
If my assumptions are correct, does that mean that page (www.nationstates.net/nation=Laevendell) adds OpenID-"<link>"-tags in the header to enable this?

User avatar
SalusaSecondus
Senior Admin
 
Posts: 354
Founded: Jun 12, 2003
Father Knows Best State

Postby SalusaSecondus » Thu Mar 21, 2013 9:46 pm

Laevendell wrote:I'm new to OpenID, but if a user enters their server and delegate information in the settings page, does that mean they'd then be able to log in to another website using the OpenID "www.nationstates.net/nation=Laevendell" (in my case) or would the OpenID be something else (or have I quite misunderstood how the delegation works)?
If my assumptions are correct, does that mean that page (http://www.nationstates.net/nation=Laevendell) adds OpenID-"<link>"-tags in the header to enable this?


It's been years since I wrote this and tested it, but yes, it should just work. You'd provide your nation's page (as per your example) and that's what would show up.

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

Postby [violet] » Fri Mar 22, 2013 4:33 pm

SalusaSecondus wrote:While we do not (currently) support OAuth, we do support OpenID which may do what you want. Take a look at the bottom of your nation's settings page.

Can OpenID be used to do some of the things tool authors are clamoring for? I don't know much about it.

There seem to be two usage cases:
  1. A third-party site wants to be able to tell whether a user really is "<nation>" or not. E.g. an offsite forum that only lets people sign up under the name of a nation they own.
  2. A third-party site/tool wants to be able to access private information or execute actions on behalf of a nation. E.g. a management tool that will log in and answer issues for your puppets, but shouldn't be allowed to change your password.
So #1 is about whether the 3rd party site can trust the user, and #2 is about whether the user can trust the 3rd party site.

OpenID would work for #1 but not #2, is that right?

User avatar
SalusaSecondus
Senior Admin
 
Posts: 354
Founded: Jun 12, 2003
Father Knows Best State

Postby SalusaSecondus » Fri Mar 22, 2013 4:59 pm

[violet] wrote:
SalusaSecondus wrote:While we do not (currently) support OAuth, we do support OpenID which may do what you want. Take a look at the bottom of your nation's settings page.

Can OpenID be used to do some of the things tool authors are clamoring for? I don't know much about it.

There seem to be two usage cases:
  1. A third-party site wants to be able to tell whether a user really is "<nation>" or not. E.g. an offsite forum that only lets people sign up under the name of a nation they own.
  2. A third-party site/tool wants to be able to access private information or execute actions on behalf of a nation. E.g. a management tool that will log in and answer issues for your puppets, but shouldn't be allowed to change your password.
So #1 is about whether the 3rd party site can trust the user, and #2 is about whether the user can trust the 3rd party site.

OpenID would work for #1 but not #2, is that right?


This is correct.

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

Postby Afforess » Fri Mar 22, 2013 11:00 pm

[violet] wrote:
SalusaSecondus wrote:While we do not (currently) support OAuth, we do support OpenID which may do what you want. Take a look at the bottom of your nation's settings page.

Can OpenID be used to do some of the things tool authors are clamoring for? I don't know much about it.

There seem to be two usage cases:
  1. A third-party site wants to be able to tell whether a user really is "<nation>" or not. E.g. an offsite forum that only lets people sign up under the name of a nation they own.
  2. A third-party site/tool wants to be able to access private information or execute actions on behalf of a nation. E.g. a management tool that will log in and answer issues for your puppets, but shouldn't be allowed to change your password.
So #1 is about whether the 3rd party site can trust the user, and #2 is about whether the user can trust the 3rd party site.

OpenID would work for #1 but not #2, is that right?


It doesn't do use case #1 that well either. The user will have to follow these steps to prove their nation is real:

1.) Users logs onto third party website
2.) Website requests nations open id details
3.) User goes back to nationstates.net, enters in OpenId information into nation settings
4.) User goes back to the third party website, logs in with open id details

That's way too complicated for the average user. OpenID is really the wrong solution, OAuth is the correct solution.

OpenID is a way to specify one identity for multiple sites so you don't need to register over and over again.

OAuth is a way to allow one application access to one account without giving said application your account login information. You can use them in conjunction.

http://softwareas.com/oauth-openid-your ... same-thing
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
SalusaSecondus
Senior Admin
 
Posts: 354
Founded: Jun 12, 2003
Father Knows Best State

Postby SalusaSecondus » Sat Mar 23, 2013 11:38 pm

I am aware of the differences. However, if you want to let people log into your forums with their NS account, OpenId is a better fit that OAuth (which is a way for them to grant access to their account to the forum). Also, setting up the OpenId delegate is actually much easier than you make it out to be. That said, it's been so long since I've looked at the spec, I can't remember how.

I could see making us an OpenId provider. I consider it currently unlikely that we'll implement OAuth.

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

Postby Afforess » Sun Mar 24, 2013 12:26 am

SalusaSecondus wrote:I am aware of the differences. However, if you want to let people log into your forums with their NS account, OpenId is a better fit that OAuth (which is a way for them to grant access to their account to the forum). Also, setting up the OpenId delegate is actually much easier than you make it out to be. That said, it's been so long since I've looked at the spec, I can't remember how.

I could see making us an OpenId provider. I consider it currently unlikely that we'll implement OAuth.


In fairness, I realize OAuth is newer, and that in 2008, it wasn't even released (when you guys added OpenID).

I understand that setting the OpenID delegate is easy, but even a series of super-easy steps is enough to baffle the average user. Rule of thumb is that every step after the 1st one loses you half of your potential viewers. So 4 steps, only 1/8 of people would bother getting that far. Most people would just close the tab, go browse somewhere else. This sucks, but it is the world that we live in.

However, becoming an OpenID provider would improve the situation significantly. This seems like a good step forward.
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
Glen-Rhodes
Powerbroker
 
Posts: 9027
Founded: Jun 25, 2008
Ex-Nation

Postby Glen-Rhodes » Sun Mar 24, 2013 10:32 am

SalusaSecondus wrote:I could see making us an OpenId provider. I consider it currently unlikely that we'll implement OAuth.

This would actually be really great. I've been wanting to make some voting tools for a long time, but I've never been able to ensure that people are who they say they are. I dabbled with OpenID, but from other implementations I've seen, it was a cumbersome way of doing things. If NS is its own provider, that may make things easier.

Regarding OAuth, I agree that it probably isn't the greatest way of doing things. It takes a lot of work, and I imagine it's even harder trying to add it to an existing system as old as NS is. But I do hope you guys consider a custom build, because there things I would like to do that involve a 3rd party app interacting with NS on the user level.
Last edited by Glen-Rhodes on Sun Mar 24, 2013 10:34 am, edited 1 time in total.

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

Postby Afforess » Wed Apr 03, 2013 8:42 am

Messed around with the OpenId currently already enabled, and yes, it does work. However it's not intuitive for the average clueless user (It wasn't intuitive for me either, and I'd like to pretend not to be clueless). If NationStates was its own OpenId provider/delegate by default though, then users wouldn't need to perform any special steps to log in.
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.


Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Arechias, Cantuariensis, Fior, Glory Be Ferret, Holy Marsh, IC-Water, Ioudaia, Istastioner, Southern Numenor, Tesco Aisle 17, Thorn1000, Valles Stellarum

Advertisement

Remove ads