Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0 Inputs not showing up in blade #137

Open
parkerstafford opened this issue Feb 1, 2024 · 4 comments
Open

1.0 Inputs not showing up in blade #137

parkerstafford opened this issue Feb 1, 2024 · 4 comments

Comments

@parkerstafford
Copy link

Hidden inputs not being shown in the html of the blade file under @csrf when doing @samlidp.

@upwebdesign
Copy link
Contributor

@parkerstafford, unfortunately there is not enough information to help guide you.

@parkerstafford
Copy link
Author

hi there, that is about it. i followed the full steps setting up the configuration for the IDP, and in my blade file i put the @samlidp under the @crsf as stated in the documentation, and there is no hidden inputs. i did notice that there was a inputs blade file which i just took and put in there for now. i was also going to see what to put in the action attribute of the post form, a laravel route, or the SP url?

@jfiguerm
Copy link

jfiguerm commented Feb 8, 2024

It happens to me too, it adds the entry @samlidp in the login form but the hidden entries are not seen. Did you manage to solve it?

@RafaAPMartins11
Copy link

The blade directive for this package is registered as bellow so the hidden inputs will only be present when SAMLRequest parameter is filled: https://domain.com/login?SAMLRequest=x

Blade::directive('samlidp', function ($expression) {
    return "<?php echo request()->filled('SAMLRequest') ? view('samlidp::components.input') : ''; ?>";
});

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

No branches or pull requests

4 participants