Giter VIP home page Giter VIP logo

Comments (6)

Firstyear avatar Firstyear commented on June 9, 2024 1

Yeah. The previous usecase that almost all requests were related too was to have public clients with localhost redirects - we've solved that now in a more secure, and simpler manner.

from kanidm.

0xC0ncord avatar 0xC0ncord commented on June 9, 2024

One use case for this is to have multiple environments where the application is deployed but only one single OAuth2 client, e.g. a production, staging, and dev environment:

  • myapp.example.com
  • myapp-staging.example.com
  • myapp-dev.example.com

from kanidm.

Firstyear avatar Firstyear commented on June 9, 2024

One use case for this is to have multiple environments where the application is deployed but only one single OAuth2 client, e.g. a production, staging, and dev environment:

* myapp.example.com

* myapp-staging.example.com

* myapp-dev.example.com

This use-case is exactly why I don't want to allow multiple origins. You should never mix production staging and dev credentials and application domains. This would allow a dev access token to be usable against a production resource server. So compromise of dev becomes compromise of production.

At the moment by forcing single origin, we force you to have separate security domains between each client, preventing users from making the security mistake in the first place.

from kanidm.

0xC0ncord avatar 0xC0ncord commented on June 9, 2024

This use-case is exactly why I don't want to allow multiple origins. You should never mix production staging and dev credentials and application domains. This would allow a dev access token to be usable against a production resource server. So compromise of dev becomes compromise of production.

At the moment by forcing single origin, we force you to have separate security domains between each client, preventing users from making the security mistake in the first place.

I agree I think that's a very compelling reason to not have such a capability. Truthfully I can't think of another use case myself -- I don't personally have a need for this feature. I was searching around for potential use cases based on the fact that Keycloak supports this but the reasoning I provided was the only one I could find.

from kanidm.

TheRealGramdalf avatar TheRealGramdalf commented on June 9, 2024

I'm really not sure how this is intended to work, but would multiple URLs/URIs be required for e.g. astubenbord/paperless-mobile#374 (using a paperless:// URI with a mobile application)? Or does that only concern the callback URI, since actual authentication happens directly in a web page (which uses the correct URL)?

from kanidm.

yaleman avatar yaleman commented on June 9, 2024

I'm really not sure how this is intended to work, but would multiple URLs/URIs be required for e.g. astubenbord/paperless-mobile#374 (using a paperless:// URI with a mobile application)? Or does that only concern the callback URI, since actual authentication happens directly in a web page (which uses the correct URL)?

That could be a valid use case, but we'd need to see how it worked in general (ie, can it be tested with an RS dedicated to that URL?)

.. though most likely the auth will be against the server's URL, which the app can request a token for using that URL.

from kanidm.

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.