最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

IDP create in laravel using Simple SAML php - Stack Overflow

programmeradmin0浏览0评论

I am facing a problem with routing and authentication.

I referred to this document:
.html

I copied simplesamlphp inside my public folder. I also configured the public\simplesamlphp\config\config.php file

When I try this login URL it gives me a 404:

public/simplesamlphp/module.php/saml/idp/sso.php

I set this route for accessing the login page:

Route::get('/saml/login1', function () {
    // echo "SDf";
    return Redirect::to('/public/simplesamlphp/module.php/core/authenticate.php?as=laravel');
});

Route::get('/saml/logout', function () {
    return Redirect::to('/public/simplesamlphp/module.php/core/logout.php');
});

I am unable to find clear documentation for simplesamlphp and laravel, can anyone help?

I am facing a problem with routing and authentication.

I referred to this document:
https://simplesamlphp./docs/stable/simplesamlphp-idp.html

I copied simplesamlphp inside my public folder. I also configured the public\simplesamlphp\config\config.php file

When I try this login URL it gives me a 404:

public/simplesamlphp/module.php/saml/idp/sso.php

I set this route for accessing the login page:

Route::get('/saml/login1', function () {
    // echo "SDf";
    return Redirect::to('/public/simplesamlphp/module.php/core/authenticate.php?as=laravel');
});

Route::get('/saml/logout', function () {
    return Redirect::to('/public/simplesamlphp/module.php/core/logout.php');
});

I am unable to find clear documentation for simplesamlphp and laravel, can anyone help?

Share Improve this question edited Mar 12 at 13:16 ADyson 62.2k16 gold badges79 silver badges92 bronze badges Recognized by PHP Collective asked Mar 12 at 12:46 Kaushal PatelKaushal Patel 2892 silver badges8 bronze badges 2
  • Why does it need to be "in Laravel" to begin with? SSP IdP runs as a standalone webapp. – grawity_u1686 Commented Mar 12 at 15:45
  • @grawity_u1686 Because I already have a Laravel project for 2 years and for this I have to do SSo for already registered users. – Kaushal Patel Commented Mar 18 at 4:35
Add a comment  | 

1 Answer 1

Reset to default 0

I believe simplesamlphp is meant for native php, and there's no direct documentation for laravel integration. What you can do is to find laravel compatible saml authentication library.

I think you can use this library if you want your laravel app to act as the IDP.

https://github/codegreencreative/laravel-samlidp

If you want your laravel app to act as the SP, then this library should work.

https://github/24Slides/laravel-saml2

I personally have used laravel-saml2 for microsoft Azure AD integration, and it works well, but I haven't tried the laravel-samlidp yet.

Regards,

发布评论

评论列表(0)

  1. 暂无评论