Merci beaucoup pour ta vidéo, franchement j'ai lu tout les trucs de microsoft impossible de savoir quoi faire, leur doc est vraiment mal foutu grâce à toi j'ai pu réussir à faire la connexion.
Hi, thanks for your help and patience, I have been able to log in but not log out, despite running session_destroy(), it is still active, how can I log out of Office 365?
So, I got the SSO to work (thank you, it's fantastic), however, and I may just be being stupid, I can't seem to get it to retain URL parameters after the authentication. Is it possible to have it retain `?page=x&cat=y` URL parameters? Edit (~20 minutes later): Figured out a "workaround" to make it work. I copied the `$_GET` array to `$_SESSION['GET']` before doing the authentication and then recalled it after the authentication for use. This wouldn't work for `$_POST`, but I have no intention of supporting `$_POST` recovery during login.
How can I refresh the token? Because every now and then I get thrown out and a white page comes up. If I then delete cookies and reload them, it works again.
AADSTS500201: We are unable to issue tokens from this API version for a Microsoft account. Please contact the application vendor as they need to use version 2.0 of the protocol to support this. I am getting this error, any help?
I have eror == Fatal error: Uncaught Error: Call to undefined method myPHPnotes\Microsoft\Auth::getAuth() in C:\host_php7\htdocs\signinwithmicrosoft\signin.php:16 Stack trace: #0 {main} thrown in C:\host_php7\htdocs\signinwithmicrosoft\signin.php on line 16
Merci beaucoup pour ta vidéo, franchement j'ai lu tout les trucs de microsoft impossible de savoir quoi faire, leur doc est vraiment mal foutu grâce à toi j'ai pu réussir à faire la connexion.
Excellent. I have one question now. Can you tell me how to implement the logout function? Looking forward to hearing from you. Thanks.
You can always logout by destroying a session e.g. :
Hello, thank you very much for sharing knowledge.
Thank you
Great! Please tell me; how to implement the logout function? Looking forward to hearing from you. Thanks.
Hi, thanks for your help and patience, I have been able to log in but not log out, despite running session_destroy(), it is still active, how can I log out of Office 365?
Thanks for the video, I finally figured out why it didn't work for me!
I have to echo the comments - fantastic tutorial but would be curious how you implement Logout. Any help there? :-)
Working!! thanks for your work!
This is excellent!!!! Any chance we can get the user's profile picture and something like an unique ID (other than the email)?
Isn't there a way to use the Microsoft Graph API beta?
I'm trying to get a User's employee ID.
So, I got the SSO to work (thank you, it's fantastic), however, and I may just be being stupid, I can't seem to get it to retain URL parameters after the authentication. Is it possible to have it retain `?page=x&cat=y` URL parameters?
Edit (~20 minutes later): Figured out a "workaround" to make it work. I copied the `$_GET` array to `$_SESSION['GET']` before doing the authentication and then recalled it after the authentication for use. This wouldn't work for `$_POST`, but I have no intention of supporting `$_POST` recovery during login.
Excellent, thank you, it saved my project
Actually, i'm having an issue. I reported it on github
@@bitpickle did you get profile picture? If yes how
if i use this source code of yours i got an error regarding class not found for i kept my three of the files outside vendor
Uncaught Exception: State parameter does not matched. :/
hi sir. Is this working in Laravel ?
If i register APP, i must pay extra¿
How can I refresh the token? Because every now and then I get thrown out and a white page comes up. If I then delete cookies and reload them, it works again.
did you manage to solve that issue?
is there any way to create an azure account without a credit card?
Yeah. I believe, I did it earlier without such requirements.
iif I want to disconnect?
thanx, I'm facing the error : Warning: Undefined array key "code" in /Applications/MAMP/htdocs/test/callback.php on line 13
line 13: $tokens = $auth->getToken($_REQUEST['code'], $_REQUEST['state']);
Hello sir,
use myPHPnotes\Microsoft\Auth me mera error aa raha he. Wo Kyun? Please explain mai kya use karu udhar
Have you included the class/autoloader in your code?
@@myPHPnotes im facing the same problem -
Steps-
1-donwload Git code
2-unzip in htdocs xammp
3-composer dump-autoload.
and now ?
@@djlucascampos007 where is the link of github code
AADSTS500201: We are unable to issue tokens from this API version for a Microsoft account. Please contact the application vendor as they need to use version 2.0 of the protocol to support this.
I am getting this error, any help?
had an issue with composer version solved it with updating composer.
You have to improve your writing style.
At?
I have eror == Fatal error: Uncaught Error: Call to undefined method myPHPnotes\Microsoft\Auth::getAuth() in C:\host_php7\htdocs\signinwithmicrosoft\signin.php:16 Stack trace: #0 {main} thrown in C:\host_php7\htdocs\signinwithmicrosoft\signin.php on line 16
Found the solution? Please share the solution, Im having the same error