Coder Social home page Coder Social logo

Comments (2)

FlorianWege-IESE avatar FlorianWege-IESE commented on August 14, 2024

Hello. Sorry for the late response.

I am not sure exactly what you mean by 'complex'. And do you refer to the SDK or Off-the-Shelf AAS Server component (which is more opinionated and trying to provide solutions that are easier to use)?

We use JWT-based OAuth, which distinguishes between auth servers issuing the tokens and resource servers being presented the tokens https://www.rfc-editor.org/rfc/rfc6749#section-1.1. If I understand you right, the resource servers should be able to issue tokens on their own? BaSyx currently has no specific facilities to generate JWTs (unless by dependencies), only means to request tokens from an auth server before making calls to other resource servers.

A fixation on RS256 I see is here

final NimbusJwtDecoder nimbusJwtDecoder = NimbusJwtDecoder.withJwkSetUri(jwkSetUri).jwsAlgorithm(SignatureAlgorithm.from("RS256")).build();
currently but that could probably be easily flexibilized to allow other signature algorithms.

With the symmetric key for HMAC distributed to different servers, however, one would have to be careful that it does not get leaked/abused and compromise the whole network that shares the key and the unique identification of the issuer would be lost, would it not? And key rotation and securely storing the key will get more complicated.

If the key was only kept at the issuer on the other hand, the receiving resource server would need to call back for verification. Maybe that's not less simple than the asymmetric/JWKS approach.

There have been no plans for symmetric signing/verification so far but we are exploring security controls for BaSyx.

from basyx-java-sdk.

nqduy35 avatar nqduy35 commented on August 14, 2024

Thank you for your informative answer. I understand that you follow the standard for the best implementation. And you are right: I'm looking for a solution that omits implementing the auth server and using the symmetric key.

from basyx-java-sdk.

Related Issues (20)

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.