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

URI personnalisé pour le callback SSOLogin #72

Closed
mhuser opened this issue May 1, 2023 · 0 comments · Fixed by #73
Closed

URI personnalisé pour le callback SSOLogin #72

mhuser opened this issue May 1, 2023 · 0 comments · Fixed by #73

Comments

@mhuser
Copy link

mhuser commented May 1, 2023

Suggestion :
Un URI personnalisé pour le callback de InitiateSSOLogin.

function InitiateSSOLogin(string $cid,array $customRedirectParameters=[], string $loginCallbackURI = NULL)
{
    //Configure URLs
	if($loginCallbackURI)
	{
		$LOGIN_CALLBACK_URI = $loginCallbackURI;
	}
	else
	{
		$LOGIN_CALLBACK_URI = "http" . ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 's' : '') . "://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/callback.php";
	}
...
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 a pull request may close this issue.

1 participant