Giter Club home page Giter Club logo

federation's Introduction

federation's People

Contributors

bartekn avatar jedmccaleb avatar nullstyle avatar

Stargazers

al3c avatar Aaron Marshall avatar jon ⚝ avatar syuilo avatar pbnj.io avatar Julian avatar  avatar Régis Guyomarch avatar Yuki Akiyama avatar

Watchers

 avatar Joyce Kim avatar  avatar James Cloos avatar Tom Llewellyn-Smith avatar Zach VanDuyn avatar  avatar Vinicius Freitas avatar codecakes avatar Latobarita avatar  avatar Stroopy avatar Rob Durst avatar  avatar

federation's Issues

Unable to change username to user_login in database [queries] config without failure

I have federation working perfectly when I use the default values for [queries]
with test data in the mysql database this works.
[queries]
federation = "SELECT username, account_id FROM wp_users WHERE username = ?"
reverse-federation = "SELECT username, account_id FROM wp_users WHERE account_id = ?"

however when I change username to user_login even when the colum in the database does exist and have the same data in it
I get error: Server error: missing destination name user_login

with this [queries] config
[queries]
federation = "SELECT user_login, account_id FROM wp_users WHERE user_login = ?"
reverse-federation = "SELECT user_login, account_id FROM wp_users WHERE account_id = ?"

my temp work around is to temp create an added colum in our database that matches username with the same data as user_login. I took a short look at the code at the point of failure but my C go programing is weak today.

I've attached the mysql.sql that I used to isolate and duplicate this problem
federation_test.sql.zip

HTTPS server

Let's discuss whether to add the ability to start https server.

Pros/cons:

  • Since we require https for all federation servers it will allow organizations to run it without dealing with nxginx or other proxies.
  • Nobody really cares if /federation endpoint is in the root domain. In other words, orgs can start federation server at federation123.example.com subdomain and it will be discoverable using stellar.toml file.
  • Most organizations (even smaller ones) use load balancers and it's pretty trivial to forward a specific path to a http server and serve it via https.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.