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

SimpleSAML_Error_Exception: URL not allowed: http://localhost:8080/login #813

Closed
Mathi05 opened this issue Mar 16, 2018 · 1 comment
Closed

Comments

@Mathi05
Copy link

Mathi05 commented Mar 16, 2018

Hi @jaimeperez ,

I am facing this issue with the latest build. I have my custom application which is developed on Codeigniter framework and runs in Google App Engine(http://localhost:8080/).

In login function, I am calling idp which is working fine but after login, it throws an error like

SimpleSAML_Error_Error: UNHANDLEDEXCEPTION
Backtrace:
1 www/_include.php:45 (SimpleSAML_exception_handler)
0 [builtin] (N/A)
Caused by: SimpleSAML_Error_Exception: URL not allowed: http://localhost:8080/login
Backtrace:
2 lib/SimpleSAML/Utils/HTTP.php:383 (SimpleSAML\Utils\HTTP::checkURLAllowed)
1 modules/saml/www/sp/saml2-acs.php:116 (require)
0 www/module.php:135 (N/A)

'baseurlpath' => 'http://localhost/POC/SAML-NEW/simplesamlphp/www/',

My Login function:

public function login($msg = NULL) {
		require_once('/var/www/html/POC/SAML-NEW/simplesamlphp/lib/_autoload.php');
               $as = new SimpleSAML_Auth_Simple('myauthinstance');
               $as->requireAuth();
               $attributes = $as->getAttributes();
               print_r($attributes);
		exit;
      
    }

but if I directly log-in to myauthinstance it is working perfectly.

Can you help me out with this?

@jaimeperez
Copy link
Member

jaimeperez commented Mar 16, 2018

Hi @Mathi05!

This is an issue tracker, not a support forum. Please use the mailing list for support.

In any case, have you set the ['application']['baseURL'] configuration option?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants