Giter Site home page Giter Site logo

gateway's People

Contributors

hnrklssn avatar nilsceberg avatar viktorclaesson avatar

Watchers

 avatar  avatar  avatar

gateway's Issues

vidarebefordra headers

Eftersom login-service nu lagrar sin token i cookies behöver åtminstone Set-cookie-headern vidarebefordras.

ta emot ip-adresser som envvars

Detta gör det lättare att ha separata definitioner för vilka services vi ska ansluta oss till beroende på t.ex. om man kör via docker-compose eller bara npm.

Single Sign-On

Integrera med Keycloak. All autentisering borde kunna skötas i gateway, och det blir nog det lättaste stället att göra det på

inkludera hoarder

  • lägg till hoarder-service i docker-compose.yml
  • lägg till anslutning till hoarder-service i main.ts
  • lägg till en schema stitch mellan User och user containers i main.ts

Skicka vidare felmeddelanden från andra tjänster bättre

Svar direkt från hoarDer:

{
  "errors": [
    {
      "message": "request not authenticated",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "checkOutUnit"
      ],
      "extensions": {
        "code": "UNAUTHENTICATED",
        "exception": {
          "stacktrace": [
            "AuthenticationError: request not authenticated",
            "    at checkOutUnit (/usr/src/app/dist/main.js:308:23)",
            "    at /usr/src/app/node_modules/graphql-tools/dist/makeExecutableSchema.js:64:22",
            "    at field.resolve (/usr/src/app/node_modules/apollo-server-express/node_modules/graphql-extensions/dist/index.js:133:26)",
            "    at resolveFieldValueOrError (/usr/src/app/node_modules/graphql/execution/execute.js:467:18)",
            "    at resolveField (/usr/src/app/node_modules/graphql/execution/execute.js:434:16)",
            "    at /usr/src/app/node_modules/graphql/execution/execute.js:244:18",
            "    at /usr/src/app/node_modules/graphql/jsutils/promiseReduce.js:23:10",
            "    at Array.reduce (<anonymous>)",
            "    at promiseReduce (/usr/src/app/node_modules/graphql/jsutils/promiseReduce.js:20:17)",
            "    at executeFieldsSerially (/usr/src/app/node_modules/graphql/execution/execute.js:241:37)"
          ]
        }
      }
    }
  ],
  "data": null
}

Svar om query görs via gateway:

{
  "errors": [
    {
      "message": "[object Object]",
      "locations": [
        {
          "line": 39,
          "column": 11
        }
      ],
      "path": [
        "checkOutUnit"
      ]
    }
  ],
  "data": null
}

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.