Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenID will be deprecated #8

Open
FelixSFD opened this issue Mar 6, 2018 · 8 comments
Open

OpenID will be deprecated #8

FelixSFD opened this issue Mar 6, 2018 · 8 comments

Comments

@FelixSFD
Copy link
Member

FelixSFD commented Mar 6, 2018

https://meta.stackexchange.com/q/307647/347985

It looks like the library is using OpenID. We need to replace it with the e-mail-based authentication.

If we need help, Tim Post is inviting us to contact SE.

@NobodyNada
Copy link
Member

NobodyNada commented Mar 6, 2018

Hmm, thanks! Our bots don’t “directly” use OpenID, but (as of a few years ago, when the bot frameworks were created), openid.stackexchange.com is the “login processor” that all the SE sites’ login forms use. (I made SwiftChatSE’s login processor by studying the requests made by the web browser when logging in and duplicating them in code.)

AFAIK, all or nearly all SE chatbots in existence (except for the JS “userscript” bots) log in this way.

If OpenID is shut down, then it seems likely the login processor will completely change, which means all bots need to be updated to the new process. We can reverse-engineer the login process again, or it might be worth contacting Tim Post and asking for “official” instructions.

@NobodyNada
Copy link
Member

NobodyNada commented Mar 6, 2018

We’ll also probably want to partner with the Charcoal folks on this, along with anyone else who runs bots.

@NobodyNada
Copy link
Member

On a related note, there is almost zero documentation for the login and chat APIs; anyone who wants to create a new bot library has to poke around the code for various libraries and bots, find obscure meta posts, and experiment with requests until it works. I think it would be worth creating a page on sobotics.org, as part of this project, with extensive documentation on login and chat.

@Bhargav-Rao
Copy link
Member

On a related note, there is almost zero documentation for the login and chat APIs; anyone who wants to create a new bot library has to poke around the code for various libraries and bots, find obscure meta posts, and experiment with requests until it works. I think it would be worth creating a page on sobotics.org, as part of this project, with extensive documentation on login and chat.

Yes, this. Given that we have migrated over from GH Pages to Wordpress for the main site, the GH Pages repo is now empty. I'm planning to convert it into our blog. I don't know enough Jekyll to do that, but we can come up with something. For the moment, let's utilize SO Channels/Teams for posting questions regarding it, where we can all edit the answer. Once SO Channels moves out of beta, they'll kick us out as well, after which we can put that content on the blog and make it public to everyone.

@Zomis
Copy link

Zomis commented Mar 11, 2018

I'm also interested in a solution to this as I found that my code also refers to openid.stackexchange.com here: https://github.com/Zomis/Duga/blob/develop/duga-core/src/main/java/net/zomis/duga/chat/StackExchangeLogin.java#L70

I also created a chat room on Stack Exchange for this: https://chat.stackexchange.com/rooms/74338/chat-bot-migration-from-openid

@Bhargav-Rao
Copy link
Member

@Zomis Another one of our Java chat libraries use OpenID.. Do let us know if you manage to find a way to port to a different login.

Jeremy Banks is trying to port his python library Chat.X, and has made some headway using StackAuth.

I'm sure that there would be a way to fix it. Tim Post is quite aware of the issue (after I ranted about it in the TL)

@FelixSFD
Copy link
Member Author

I've updated the Java-lib: Tunaki/chatexchange#7

We basically need to fetch the fkey from the login-form on {host}/users/login and POST it along with the credentials to the same page. Then grab the cookies and use them on chat.{host}. It's actually much easier than using OpenID :-D

@Bhargav-Rao
Copy link
Member

@NobodyNada Now that there's a blog, we can add the documentation and details regarding the chat libraries. (Felix has already added one related to the OpenID migration https://blog.sobotics.org/2018/07/replacing-openid). We can create different blog posts, in parts, or one huge blog post in whole.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants