Okta Saml Integration

323 views
Skip to first unread message

Rajandra Kumar

unread,
Jun 3, 2021, 2:14:42 PM6/3/21
to SimpleSAMLphp
Hello I am facing some issues to integrate okta saml integration in PHP
Please view these steps which I implement:
1)Create application in Okta with SAML 2.0
2)Download SAML SDK
3)Update composer
4)Setup in localhost:
5)Metadata: XML file:

Login link URL:
I got this error
Oops! An Error Occurred The server returned a "500 Internal Server Error".

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

Please filed  composer,config and meta data files from google drive URL:.

https://drive.google.com/drive/folders/1tcgEdYbrXMlJaIPCZOXQb4x5-GxJzhuN?usp=sharing

Please collaborate me.

Thanks & Regards

Rajendra Joshi







Rajandra Kumar

unread,
Jun 4, 2021, 12:01:07 AM6/4/21
to simple...@googlegroups.com
Hello I have also got this error in other attempt:
Config file: line no 581
'session.cookie.samesite' => \SimpleSAML\Utils\HTTP::canSetSameSiteNone() ? 'None' : null,

Thanks

--
This is a mailing list for users of SimpleSAMLphp, not a support service. If you are willing to buy commercial support, please take a look here:
 
https://simplesamlphp.org/support
 
Before sending your question, make sure it is related to SimpleSAMLphp, and not your web server's configuration or any other third-party software. This mailing list cannot help with software that uses SimpleSAMLphp, only regarding SimpleSAMLphp itself.
 
Make sure to read the documentation:
 
https://simplesamlphp.org/docs/stable/
 
If you have an issue with SimpleSAMLphp that you cannot resolve and reading the documentation doesn't help, you are more than welcome to ask here for help. Subscribe to the list and send an email with your question. However, you will be expected to comply with some minimum, common sense standards in your questions. Please read this carefully:
 
http://catb.org/~esr/faqs/smart-questions.html
---
You received this message because you are subscribed to a topic in the Google Groups "SimpleSAMLphp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simplesamlphp/2FIwFvpfl1Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simplesamlph...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simplesamlphp/ea16bd6c-299e-4bd6-8955-4cb81b105583n%40googlegroups.com.

Rajandra Kumar

unread,
Jun 4, 2021, 12:02:57 AM6/4/21
to simple...@googlegroups.com
Hello,
 I have  also got this error:
Fatal error: Uncaught Error: Non-static method SimpleSAML\Utils\HTTP::canSetSameSiteNone() cannot be called statically in D:\xampp\htdocs\oktanew\config\config.php:581 Stack trace: #0 D:\xampp\htdocs\oktanew\lib\SimpleSAML\Configuration.php(116): require() #1 D:\xampp\htdocs\oktanew\lib\SimpleSAML\Configuration.php(273): SimpleSAML\Configuration::loadFromFile('D:\\xampp\\htdocs...', false) #2 D:\xampp\htdocs\oktanew\lib\SimpleSAML\Module.php(524): SimpleSAML\Configuration::getOptionalConfig() #3 D:\xampp\htdocs\oktanew\www\_include.php(12): SimpleSAML\Module::callHooks('exception_handl...', Object(Error)) #4 [internal function]: SimpleSAML_exception_handler(Object(Error)) #5 {main} thrown in D:\xampp\htdocs\oktanew\config\config.php on line 581

  getOptionalConfig() function did dont found in entire directory.

Thanks  

On Thu, Jun 3, 2021 at 11:44 PM Rajandra Kumar <raje...@stelleninfotech.in> wrote:

Peter Schober

unread,
Jun 4, 2021, 6:28:49 AM6/4/21
to simple...@googlegroups.com
* Rajandra Kumar <raje...@stelleninfotech.in> [2021-06-04 06:02]:
> Fatal error: Uncaught Error: Non-static method
> SimpleSAML\Utils\HTTP::canSetSameSiteNone() cannot be called statically in
> D:\xampp\htdocs\oktanew\config\config.php:581 Stack trace: #0

The same answer(s) we've been giving to Kamal Kaur <kamal....@gmail.com>
(your colleage, presumably?) in the last few days still apply.

-peter

Rajandra Kumar

unread,
Jun 4, 2021, 7:21:26 AM6/4/21
to simple...@googlegroups.com
Hello,
Function name not found is composer version error or else?
Please collaborate me.

Thanks

--
This is a mailing list for users of SimpleSAMLphp, not a support service. If you are willing to buy commercial support, please take a look here:

https://simplesamlphp.org/support

Before sending your question, make sure it is related to SimpleSAMLphp, and not your web server's configuration or any other third-party software. This mailing list cannot help with software that uses SimpleSAMLphp, only regarding SimpleSAMLphp itself.

Make sure to read the documentation:

https://simplesamlphp.org/docs/stable/

If you have an issue with SimpleSAMLphp that you cannot resolve and reading the documentation doesn't help, you are more than welcome to ask here for help. Subscribe to the list and send an email with your question. However, you will be expected to comply with some minimum, common sense standards in your questions. Please read this carefully:

http://catb.org/~esr/faqs/smart-questions.html
---
You received this message because you are subscribed to a topic in the Google Groups "SimpleSAMLphp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simplesamlphp/2FIwFvpfl1Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simplesamlph...@googlegroups.com.

pat...@cirrusidentity.com

unread,
Jun 4, 2021, 2:20:37 PM6/4/21
to SimpleSAMLphp
You said you did this:

"
The correct place to download it is 

- Patrick

Rajandra Kumar

unread,
Jun 7, 2021, 1:23:06 AM6/7/21
to simple...@googlegroups.com
Hello I download from same place:
Under Github Repository:
image.png

Virus-free. www.avg.com

Rajandra Kumar

unread,
Jun 7, 2021, 4:13:40 AM6/7/21
to simple...@googlegroups.com
Hello.
How can I enable error log in saml integration?

Thanks

Virus-free. www.avg.com

Rajandra Kumar

unread,
Jun 7, 2021, 5:13:33 AM6/7/21
to simple...@googlegroups.com, rohit garg
Hello,
After fix composer issues I am getting this error:
Please go through:
2) Click over signin link

I am getting this error:

image.png
 SimpleSAML\Configuration::getOptionalConfig() function does not found entire directory.
I have downloaded SDK from here:

image.png

Please see attached config and composer files.



Virus-free. www.avg.com

On Mon, Jun 7, 2021 at 10:52 AM Rajandra Kumar <raje...@stelleninfotech.in> wrote:
okta.zip

Peter Schober

unread,
Jun 7, 2021, 8:18:49 AM6/7/21
to simple...@googlegroups.com
* Rajandra Kumar <raje...@stelleninfotech.in> [2021-06-07 11:13]:
> I have downloaded SDK from here:
> https://simplesamlphp.org/download

That is still not a precise description of how *exactly* you have
installed SimpleSAMLphp: Name *all* *the* exact *steps* you took.
E.g. did you download the release tar.gz from that page or did you
follow the links to the github respository? If the latter what exactly
did you do to install SSP from github?

The errors you keep sending still suggest your configuration does not
match the code you're running.

(And that's the last time I'm going to repeat that.)

-peter

Rajandra Kumar

unread,
Jun 7, 2021, 8:32:28 AM6/7/21
to simple...@googlegroups.com
Hello,
I followed this 
Download FROM Git clone.

Thanks




Virus-free. www.avg.com

--
This is a mailing list for users of SimpleSAMLphp, not a support service. If you are willing to buy commercial support, please take a look here:

https://simplesamlphp.org/support

Before sending your question, make sure it is related to SimpleSAMLphp, and not your web server's configuration or any other third-party software. This mailing list cannot help with software that uses SimpleSAMLphp, only regarding SimpleSAMLphp itself.

Make sure to read the documentation:

https://simplesamlphp.org/docs/stable/

If you have an issue with SimpleSAMLphp that you cannot resolve and reading the documentation doesn't help, you are more than welcome to ask here for help. Subscribe to the list and send an email with your question. However, you will be expected to comply with some minimum, common sense standards in your questions. Please read this carefully:

http://catb.org/~esr/faqs/smart-questions.html
---
You received this message because you are subscribed to a topic in the Google Groups "SimpleSAMLphp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simplesamlphp/2FIwFvpfl1Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simplesamlph...@googlegroups.com.

Peter Schober

unread,
Jun 7, 2021, 8:42:42 AM6/7/21
to simple...@googlegroups.com
* Rajandra Kumar <raje...@stelleninfotech.in> [2021-06-07 14:32]:
> Hello,
> I followed this
> https://github.com/simplesamlphp/simplesamlphp
> Download FROM Git clone.

STILL NOT ENOUGH DETAIL!!!

Anyway, I'll just assume that you cloned the master branch (*not* the
latest release) and then we're still back at what Tim answered days
ago and I keep repeating (code doesn't match your config).

-peter

Rajandra Kumar

unread,
Jun 7, 2021, 8:45:15 AM6/7/21
to simple...@googlegroups.com
Hello,
I implemented like this:
1)Create app in Okta
2)SAML downloads from 
Github repository:
Update composer
3) Set config file and metadata by this URL:
Also generate cert
openssl req -newkey rsa:3072 -new -x509 -days 3652 -nodes -out saml.crt -keyout saml.pem

So commercial support can provide any help?

Thanks

Virus-free. www.avg.com

--
This is a mailing list for users of SimpleSAMLphp, not a support service. If you are willing to buy commercial support, please take a look here:

https://simplesamlphp.org/support

Before sending your question, make sure it is related to SimpleSAMLphp, and not your web server's configuration or any other third-party software. This mailing list cannot help with software that uses SimpleSAMLphp, only regarding SimpleSAMLphp itself.

Make sure to read the documentation:

https://simplesamlphp.org/docs/stable/

If you have an issue with SimpleSAMLphp that you cannot resolve and reading the documentation doesn't help, you are more than welcome to ask here for help. Subscribe to the list and send an email with your question. However, you will be expected to comply with some minimum, common sense standards in your questions. Please read this carefully:

http://catb.org/~esr/faqs/smart-questions.html
---
You received this message because you are subscribed to a topic in the Google Groups "SimpleSAMLphp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simplesamlphp/2FIwFvpfl1Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simplesamlph...@googlegroups.com.

Peter Schober

unread,
Jun 7, 2021, 8:51:05 AM6/7/21
to simple...@googlegroups.com
* Rajandra Kumar <raje...@stelleninfotech.in> [2021-06-07 14:45]:
> So commercial support can provide any help?

If you're unable to realise that you have been given the answer about
half a dozen times now feel free to pay someone to read those emails
to you.

Good luck.

-peter

Rajandra Kumar

unread,
Jun 7, 2021, 9:11:34 AM6/7/21
to simple...@googlegroups.com
Thanks will try  simplesamlphp-1.19.1.tar.gz  and will ask to you in case of any query.

Thanks

Virus-free. www.avg.com

--
This is a mailing list for users of SimpleSAMLphp, not a support service. If you are willing to buy commercial support, please take a look here:

https://simplesamlphp.org/support

Before sending your question, make sure it is related to SimpleSAMLphp, and not your web server's configuration or any other third-party software. This mailing list cannot help with software that uses SimpleSAMLphp, only regarding SimpleSAMLphp itself.

Make sure to read the documentation:

https://simplesamlphp.org/docs/stable/

If you have an issue with SimpleSAMLphp that you cannot resolve and reading the documentation doesn't help, you are more than welcome to ask here for help. Subscribe to the list and send an email with your question. However, you will be expected to comply with some minimum, common sense standards in your questions. Please read this carefully:

http://catb.org/~esr/faqs/smart-questions.html
---
You received this message because you are subscribed to a topic in the Google Groups "SimpleSAMLphp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simplesamlphp/2FIwFvpfl1Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simplesamlph...@googlegroups.com.

Rajandra Kumar

unread,
Jun 8, 2021, 7:22:41 AM6/8/21
to simple...@googlegroups.com
Hello,
I tried with Latest stable version (1.19.1) simplesamlphp-1.19.1.tar.gz. This issue raise when test:
http://oktasamltest.saasdevteam.com/config/config.php

Fatal error: Uncaught Error: Class "SimpleSAML\Logger" not found in /home/saasdevteam/public_html/oktasamltest/config/config.php:295 Stack trace: #0 {main} thrown in /home/saasdevteam/public_html/oktasamltest/config/config.php on line 295

Please collaborate me.

Thanks

--
This is a mailing list for users of SimpleSAMLphp, not a support service. If you are willing to buy commercial support, please take a look here:

https://simplesamlphp.org/support

Before sending your question, make sure it is related to SimpleSAMLphp, and not your web server's configuration or any other third-party software. This mailing list cannot help with software that uses SimpleSAMLphp, only regarding SimpleSAMLphp itself.

Make sure to read the documentation:

https://simplesamlphp.org/docs/stable/

If you have an issue with SimpleSAMLphp that you cannot resolve and reading the documentation doesn't help, you are more than welcome to ask here for help. Subscribe to the list and send an email with your question. However, you will be expected to comply with some minimum, common sense standards in your questions. Please read this carefully:

http://catb.org/~esr/faqs/smart-questions.html
---
You received this message because you are subscribed to a topic in the Google Groups "SimpleSAMLphp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simplesamlphp/2FIwFvpfl1Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simplesamlph...@googlegroups.com.

Rajandra Kumar

unread,
Jun 8, 2021, 9:02:00 AM6/8/21
to simple...@googlegroups.com
Hello,
Please view this URL:
http://oktasamltest.saasdevteam.com/login.php
Now click over  Signin 
Got this error:
Fatal error: Uncaught SimpleSAML\Error\CriticalConfigurationError: The configuration is invalid: Setting secure cookie on plain HTTP is not allowed. in /home/saasdevteam/public_html/oktasamltest/lib/SimpleSAML/Session.php:306 Stack trace: #0 /home/saasdevteam/public_html/oktasamltest/lib/SimpleSAML/Error/Error.php(190): SimpleSAML\Session::getSessionFromRequest() #1 /home/saasdevteam/public_html/oktasamltest/lib/SimpleSAML/Error/Error.php(228): SimpleSAML\Error\Error->saveError() #2 /home/saasdevteam/public_html/oktasamltest/www/_include.php(18): SimpleSAML\Error\Error->show() #3 [internal function]: SimpleSAML_exception_handler(Object(SimpleSAML\Error\Exception)) #4 {main} thrown in /home/saasdevteam/public_html/oktasamltest/lib/SimpleSAML/Session.php on line 306

So need to run in https URL

Thanks

Rajandra Kumar

unread,
Jun 10, 2021, 1:50:02 AM6/10/21
to simple...@googlegroups.com
Hello,
Please goto this URL:
Click over  Signin link.
I got this error:
Track no: 9aa5b6c0de

Debug information

The debug information below may be of interest to the administrator / help desk:

SimpleSAML\Error\Error: UNHANDLEDEXCEPTION

Backtrace:
1 www/_include.php:17 (SimpleSAML_exception_handler)
0 [builtin] (N/A)
Caused by: SimpleSAML\Error\Exception: No authentication source with id 'example-okta-com' found.
Backtrace:
3 lib/SimpleSAML/Auth/Source.php:373 (SimpleSAML\Auth\Source::getById)
2 modules/saml/www/sp/saml2-acs.php:14 (require)
1 lib/SimpleSAML/Module.php:266 (SimpleSAML\Module::process)
0 www/module.php:10 (N/A)

Peter Schober

unread,
Jun 10, 2021, 9:45:28 AM6/10/21
to simple...@googlegroups.com
* Rajandra Kumar <raje...@stelleninfotech.in> [2021-06-10 07:50]:
> Caused by: SimpleSAML\Error\Exception: No authentication source with
> id 'example-okta-com' found.

There's your error. Is there a question in there somewhere?

The way you keep posting these messages will only ensure that people
(including myself) will stop reading and replying to your messages.

Maybe it's time you had a look at
http://catb.org/~esr/faqs/smart-questions.html

-peter

Rajandra Kumar

unread,
Jun 15, 2021, 3:24:12 PM6/15/21
to simple...@googlegroups.com
Hello,
Everything is well. Okta with Saml integration connection fine:
image.png

But when I use this code for integration:
<?php
 ini_set('display_startup_errors', 1);
 ini_set('display_errors', 1);
 error_reporting(-1);
require_once('lib/_autoload.php');
$as = new \SimpleSAML\Auth\Simple('default-sp');
$as->requireAuth();
$attributes = $as->getAttributes();
print_r($attributes);
?>
Got this error:
Fatal error: Uncaught SimpleSAML\Error\Exception: Cannot load PHP session with a specific ID. in /home/saasdevteam/public_html/oktasamltest/simplesamlphp/lib/SimpleSAML/SessionHandlerPHP.php:266 Stack trace: #0 /home/saasdevteam/public_html/oktasamltest/simplesamlphp/lib/SimpleSAML/Session.php(348): SimpleSAML\SessionHandlerPHP->loadSession('80e0da554e597bd...') #1 /home/saasdevteam/public_html/oktasamltest/simplesamlphp/lib/SimpleSAML/Session.php(263): SimpleSAML\Session::getSession() #2 /home/saasdevteam/public_html/oktasamltest/simplesamlphp/lib/SimpleSAML/Auth/Simple.php(53): SimpleSAML\Session::getSessionFromRequest() #3 /home/saasdevteam/public_html/oktasamltest/simplesamlphp/success.php(7): SimpleSAML\Auth\Simple->__construct('default-sp') #4 {main} thrown in /home/saasdevteam/public_html/oktasamltest/simplesamlphp/lib/SimpleSAML/SessionHandlerPHP.php on line 266


Please collaborate me.

Thanks

Virus-free. www.avast.com

--
This is a mailing list for users of SimpleSAMLphp, not a support service. If you are willing to buy commercial support, please take a look here:
 
https://simplesamlphp.org/support
 
Before sending your question, make sure it is related to SimpleSAMLphp, and not your web server's configuration or any other third-party software. This mailing list cannot help with software that uses SimpleSAMLphp, only regarding SimpleSAMLphp itself.
 
Make sure to read the documentation:
 
https://simplesamlphp.org/docs/stable/
 
If you have an issue with SimpleSAMLphp that you cannot resolve and reading the documentation doesn't help, you are more than welcome to ask here for help. Subscribe to the list and send an email with your question. However, you will be expected to comply with some minimum, common sense standards in your questions. Please read this carefully:
 
http://catb.org/~esr/faqs/smart-questions.html
---
You received this message because you are subscribed to a topic in the Google Groups "SimpleSAMLphp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simplesamlphp/2FIwFvpfl1Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simplesamlph...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages