Git Product home page Git Product logo

Comments (9)

scottbrady91 avatar scottbrady91 commented on May 30, 2024

Identity Server will only send tokens to reply urls it is aware of before the request is made, for security reasons (it minimizes the attack surface). If this url is compromised in some way, an attacker could start stealing tokens and therefore gain unauthorized access your resources. Wildcard urls are too easily manipulated and this is how some big players have been compromised in the past.

Regarding multiple Reply Urls per Relying Party (like in the core project for OIDC), I don't see why not. Unless this is prohibited by the WS-Fed specification in some way... It'd need to be a PR either way.

from identityserver3.wsfederation.

joelhaslerfhnw avatar joelhaslerfhnw commented on May 30, 2024

Thank you very much for your feedback. So it means that the IdentityServer support multiple ReplyUrls in theory? Because in the current implementation we saw that the model class RelyingParty does only save one ReplyUrl. Does it mean we need to extend this class?
In the WS-Fed specification the wreply parameter is an optional parameter and is the URL to which responses are directed.

Thanks

from identityserver3.wsfederation.

scottbrady91 avatar scottbrady91 commented on May 30, 2024

In theory it is possible to have multiple ReplyUrls, however this requires changes to both the RelyingParty model and SignInValidator (I think). Either way, the change to RelyingParty model is a breaking change.

I could maybe get a PR ready for the v3 release where such breaking changes are acceptable.

from identityserver3.wsfederation.

clairernovotny avatar clairernovotny commented on May 30, 2024

This PR has support for multiple reply url's for WsFed:
#60

And it was just merged in.

from identityserver3.wsfederation.

clairernovotny avatar clairernovotny commented on May 30, 2024

Looks like you can also plug-in your own reply validator:
https://github.com/IdentityServer/IdentityServer3.WsFederation/blob/dev/source/WsFederationPlugin/Services/DefaultRedirectUriValidator.cs#L52

So you could put in your own wildcard and implement logic to parse that and satisfy the call.

from identityserver3.wsfederation.

scottbrady91 avatar scottbrady91 commented on May 30, 2024

A collection for PostLogoutRedirectUris was added in #60, however the ReplyUrl is still one per Relying Party. Changing this would be a breaking change.

IRedirectUriValidator is also implemented for post logout redirect urls only.

from identityserver3.wsfederation.

clairernovotny avatar clairernovotny commented on May 30, 2024

Oh, sorry, missed the part where you needed it to be on the ReplyUrl param

from identityserver3.wsfederation.

joelhaslerfhnw avatar joelhaslerfhnw commented on May 30, 2024

Hi,
I am quite new in the github community. Sorry for this bad question, but what are the steps if we like to make a breaking change to have one RP with multiple Endpoints?

Thanks

from identityserver3.wsfederation.

leastprivilege avatar leastprivilege commented on May 30, 2024

We would need to add the feature and release a new major version. We are not planning to do that soon.

from identityserver3.wsfederation.

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.