Giter VIP home page Giter VIP logo

checklisten's Introduction

Checklisten Monorepo

Beinhaltet ein Angular-Frontend und ein Quarkus-Backend für Winkels Checklisten

Development Server

Sarten des Servers mit Maven:

mvn clean compile quarkus:dev

Resourcen zum Testen, ob das Backend da ist:

http://localhost:9300/checklisten-api/dev/hello

http://localhost:9300/checklisten-api/version

http://localhost:9300/checklisten-api/heartbeats?heartbeatId=heartbeat

Login

http://localhost:9300/auth/login

Der Endpoint gibt

http://localhost:9000/authprovider/clients/oauth/token

mit dem Payload OAuthClientCredentials auf:

{"clientId":"extrem-geheime-clientId","clientSecret":"g3He1m","nonce":"horst"}

Ablauf SignUp

  • SignUp mit secret wurde nach 6.0.1 entfernt, da jetzt jeder, der möchte ein Checklistenkonto anlegen können soll.
  • redirect zum AuthProvider mit url https://auth-provider-domain/signup?accessToken=ddas-access-token&state=signup
  • Nach Antwort vom AuthProvider: POST-Request an signup/user mit dem JWT als Authorizaton-Header. Eintrag in Tabelle USERS (AuthenticationFilter holt die UUID heraus und setzt sie in den ContainerRequestContext als property 'USERID')
  • Auth-Provider redirected zurük. Nach Antwort: Dialog mit Hinweis auf Postfach und Aktivierungslink öffnen.

Ablauf LogIn

  • redirect zum AuthProvider mit url https://auth-provider-domain#/login?accessToken=das-access-token&redirectUrl=die-redirect-url
  • Nach Antwort vom AuthProvider: POST-Request an /auth/session . Es wird geprüft, ob das Subject bekannt ist. Die Antwort ist eine Session auf dem Server und ein Session-Cookie für den client, das im AuthorizationFilter bei jedem Request geprüft wird. Außedem kommt noch ein UserSession-Objekt mit, in dem ein expiresAt-Datum steht sowie ein Zufallsstring für die idReferenz der Session. Bei jedem Request wird die Session wieder verlängert, so dass man nur nach langer Untätigkeit rausfliegt.

Relesenotes

Release-Notes

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.