Sign in with Microsoft Integration with PHP

Поділитися
Вставка
  • Опубліковано 8 лис 2024

КОМЕНТАРІ • 41

  • @hbx380
    @hbx380 Місяць тому

    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.

  • @youthtech3388
    @youthtech3388 3 роки тому +8

    Excellent. I have one question now. Can you tell me how to implement the logout function? Looking forward to hearing from you. Thanks.

    • @e28shadow
      @e28shadow 2 роки тому

      You can always logout by destroying a session e.g. :

  • @desarrolladorcii5091
    @desarrolladorcii5091 9 місяців тому

    Hello, thank you very much for sharing knowledge.
    Thank you

  • @md.jamiluddin3295
    @md.jamiluddin3295 3 роки тому +1

    Great! Please tell me; how to implement the logout function? Looking forward to hearing from you. Thanks.

  • @gilbertoosorio2078
    @gilbertoosorio2078 Рік тому +1

    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?

  • @flamberkruds7912
    @flamberkruds7912 2 роки тому

    Thanks for the video, I finally figured out why it didn't work for me!

  • @michaelmcguk
    @michaelmcguk 2 роки тому

    I have to echo the comments - fantastic tutorial but would be curious how you implement Logout. Any help there? :-)

  • @ea4gkq-angel764
    @ea4gkq-angel764 2 роки тому

    Working!! thanks for your work!

  • @fanwen1064
    @fanwen1064 3 роки тому

    This is excellent!!!! Any chance we can get the user's profile picture and something like an unique ID (other than the email)?

  • @miranham_neo
    @miranham_neo 2 роки тому

    Isn't there a way to use the Microsoft Graph API beta?
    I'm trying to get a User's employee ID.

  • @tsukasadt
    @tsukasadt 6 місяців тому

    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.

  • @bitpickle
    @bitpickle 3 роки тому

    Excellent, thank you, it saved my project

    • @bitpickle
      @bitpickle 3 роки тому

      Actually, i'm having an issue. I reported it on github

    • @nukeman4
      @nukeman4 2 роки тому

      @@bitpickle did you get profile picture? If yes how

  • @jayaatkakkar2701
    @jayaatkakkar2701 Рік тому

    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

  • @CristianVG
    @CristianVG 2 роки тому

    Uncaught Exception: State parameter does not matched. :/

  • @tienattr8227
    @tienattr8227 3 роки тому

    hi sir. Is this working in Laravel ?

  • @diki578
    @diki578 3 роки тому

    If i register APP, i must pay extra¿

  • @sKasubek
    @sKasubek Рік тому

    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.

  • @abbasitmemon1728
    @abbasitmemon1728 3 роки тому

    is there any way to create an azure account without a credit card?

    • @myPHPnotes
      @myPHPnotes  3 роки тому

      Yeah. I believe, I did it earlier without such requirements.

  • @frankstiftyngayanarico8826
    @frankstiftyngayanarico8826 2 роки тому

    iif I want to disconnect?

  • @bsungur
    @bsungur 2 роки тому

    thanx, I'm facing the error : Warning: Undefined array key "code" in /Applications/MAMP/htdocs/test/callback.php on line 13

    • @bsungur
      @bsungur 2 роки тому

      line 13: $tokens = $auth->getToken($_REQUEST['code'], $_REQUEST['state']);

  • @priyankascorner5246
    @priyankascorner5246 3 роки тому

    Hello sir,
    use myPHPnotes\Microsoft\Auth me mera error aa raha he. Wo Kyun? Please explain mai kya use karu udhar

    • @myPHPnotes
      @myPHPnotes  3 роки тому

      Have you included the class/autoloader in your code?

    • @djlucascampos007
      @djlucascampos007 3 роки тому

      @@myPHPnotes im facing the same problem -
      Steps-
      1-donwload Git code
      2-unzip in htdocs xammp
      3-composer dump-autoload.
      and now ?

    • @darshansingh1419
      @darshansingh1419 3 роки тому

      @@djlucascampos007 where is the link of github code

  • @rishidusad2985
    @rishidusad2985 3 роки тому

    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?

    • @rishidusad2985
      @rishidusad2985 3 роки тому +1

      had an issue with composer version solved it with updating composer.

  • @sercan_arga
    @sercan_arga 3 роки тому

    You have to improve your writing style.

  • @agussalimfkip
    @agussalimfkip 2 роки тому +1

    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

    • @wizzzzzzz9135
      @wizzzzzzz9135 2 роки тому

      Found the solution? Please share the solution, Im having the same error