Skip to content

Conversation

tentus
Copy link

@tentus tentus commented Apr 24, 2024

There is a feature in the aacotroneo/laravel-saml2 library which allows users to extend the controller without having to redefine all the routes by defining a saml2_controller config value, which you can see here.

It's very simple to implement, and I was able to duplicate the functionality with minimal tweaks to rectify stylistic differences between the two repos. My intent here is to make it easier for users of the aacotroneo lib to switch over to this one (and by users I mean me, specifically, but I'm sure other people could also use this feature).

…xtend the Saml2Controller, without needing to redefine all the routes. See aacotroneo/laravel-saml2@34fe227 for the original config that this is directly copying from
@fedeisas
Copy link

fedeisas commented May 6, 2024

+1

I also bumped into this trying to add login_hint to my login calls

| it used in the routes definition.
|
*/
'saml2_controller' => '',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not define the default one here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went with the empty string so as to mirror the original PR as closely as possible
aacotroneo/laravel-saml2@34fe227

I imagine the original author probably chose to do this so that user error would be marginally safer (that is to say, if they set their config to false or something it shouldn't break the routes).

@VGirol
Copy link

VGirol commented Nov 28, 2024

I'm looking forward to this feature.
Can you merge it please ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants