radu dragos
radu dragos
  • 66
  • 170 722
PHP Web authenticate on Microsoft with OAuth 2.0 using GET and POST
MS AD Application Registration
portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade
PHP Source code for GET:
docs.google.com/document/d/e/2PACX-1vSbQJ_UjtZgE7X4x_TeNL_rDpuWcpu094U9bRKkhko61GFZl1-blvbAa9PUfDubutLRz2xzkrtT2Xp3/pub
PHP Source code for POST:
docs.google.com/document/d/e/2PACX-1vSpHOzvL5rndhDO2cW66Hfe1n8cQJAQ2bV4-P_O3WzHFqvPP-60zyrByeqGvGhvNH0bKtKy9FNGkI9Y/pub
Переглядів: 23 725

Відео

BasicsOfEmailSystem
Переглядів 3233 роки тому
BasicsOfEmailSystem
Ubuntu as Mail Server
Переглядів 8894 роки тому
Ubuntu as Mail Server
BasicsOfEmailSystem
Переглядів 2034 роки тому
BasicsOfEmailSystem
ProiectComplet
Переглядів 14 тис.4 роки тому
ProiectComplet
WEB server in PacketTracer
Переглядів 1,1 тис.4 роки тому
WEB server in PacketTracer
DHCP server in PacketTracer
Переглядів 1,2 тис.4 роки тому
DHCP server in PacketTracer
Static IP inPacketTracer
Переглядів 1,3 тис.4 роки тому
Static IP inPacketTracer
LAN in PacketTracer
Переглядів 1,7 тис.4 роки тому
LAN in PacketTracer
LAMP on Ubuntu
Переглядів 5754 роки тому
Installing LAMP bundle on Ubuntu Server
scp file transfer
Переглядів 6394 роки тому
Use scp (winscp) to transfer files from windows to linux and back
Example recursive network split
Переглядів 3,6 тис.4 роки тому
Example recursive network split Sub netting
Recursive network split
Переглядів 1,4 тис.4 роки тому
Splitting a network class recursively Sub netting
NM NA BA for any network
Переглядів 1,8 тис.4 роки тому
Determine Netmask, Network Address and Broadcast Address for any network knowing a single IP address from the network.
Splitting a network
Переглядів 1,8 тис.4 роки тому
Splitting a network class in 2 halves
Install and connect to openssh server
Переглядів 7354 роки тому
Install and connect to openssh server
InstallUbuntuServerInVirtualMachine
Переглядів 6 тис.4 роки тому
InstallUbuntuServerInVirtualMachine
Using Network Masks
Переглядів 1,7 тис.4 роки тому
Using Network Masks
Intro IP and NetMask
Переглядів 1,8 тис.4 роки тому
Intro IP and NetMask
LogicaBinaraPtOameni
Переглядів 9114 роки тому
LogicaBinaraPtOameni
RIP in Cisco Packet Tracer
Переглядів 7 тис.8 років тому
RIP in Cisco Packet Tracer
assembly strings1
Переглядів 4708 років тому
assembly strings1
ASM socket UDP
Переглядів 6 тис.8 років тому
ASM socket UDP
2015Prob retele Diana
Переглядів 2,2 тис.9 років тому
2015Prob retele Diana
Socket UDP PHP
Переглядів 12 тис.9 років тому
Socket UDP PHP
2015Prob retele SimonaV2
Переглядів 1,6 тис.9 років тому
2015Prob retele SimonaV2
2015Prob retele Simona
Переглядів 2,2 тис.9 років тому
2015Prob retele Simona
2015Prob retele Nicu
Переглядів 2,1 тис.9 років тому
2015Prob retele Nicu
sockets made easy
Переглядів 2,9 тис.9 років тому
sockets made easy
retele netsimk nat
Переглядів 3,1 тис.9 років тому
retele netsimk nat

КОМЕНТАРІ

  • @globalfactsforyou
    @globalfactsforyou 3 місяці тому

    It is working but I am not able fetch the username nor email post auth, Can you please help me?

  • @ozburun9716
    @ozburun9716 4 місяці тому

    Thank you !

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

    Salut, Dragos! Te pricepi cumva la facut legatura dintre o aplicatie web si ANAF (pt efactura)? Acum 4 ani mi-am scris un soft de facturare in php, mysql, html, css cu scopul de a avea o solutie independenta care se actualizeaza cand si cum vreau eu. Problema e ca nu am nicio experienta cu API iar, de anul trecut, nu mai am timp si energie ca sa fac si asta. Aici au un document cu instructiuni (care ma depasesc): static.anaf.ro/static/10/Anaf/Informatii_R/API/Oauth_procedura_inregistrare_aplicatii_portal_ANAF.pdf

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

    Great video, simple and to the point... Good work, and keep it going 🙂

  • @user-ln3rq7os4e
    @user-ln3rq7os4e 6 місяців тому

    Hi, Good work. I am getting Certificate not valid. My redirect URL = localhost I am using Xampp for hosting my PHP app. getting Warning: Undefined array key "action" at the lines if ($_GET['action'] == 'login') and at if ($_GET['action'] == 'logout'){ how to solve this. Thank you!!

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

    Thank You

  • @paltonlimaalves1754
    @paltonlimaalves1754 11 місяців тому

    Man, you got my respect. I searched for weeks to understand how to integrate and you make it clear in 6 minutes. Thank you!

  • @johnpitic1124
    @johnpitic1124 11 місяців тому

    Foarte frumos construita..cum as putea lua legatura cu dvs,am un proiect la care nu ma descurc,ma puteti ajuta?

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

    A redirect (header) after an echo "<h1>..." is not allowed

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

    thanks! this helped a lot!

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

    thx bro u great

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

    Do you know if it is best practice to place a captcha before allowing sign-in link to be followed? Or is Microsoft handling this on their login?

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

      all logon securtiy is handled by ms or a federated server. there is no need to do additional captcha's

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

    Wow awesome video, straight to the point and works. Super helpful, thank you!!!

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

    hola estoy probando, y alñogueo pero no puedo obtener el token para hacer peticiones curl alguien sabrá como lo obtengo ya aparéese el name y log out

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

    Thanks

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

    Thank you so much! i looked for stuff like this for days

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

    Hi Radu. I have followed the steps indicated. When doing the login, the Microsoft page never appears requesting the application permissions.

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

    De foarte mare ajutor. Mulțumim, domnule profesor!

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

    Respect

  • @MarkS-fc6bf
    @MarkS-fc6bf Рік тому

    Hi Radu, I'm getting this error Warning: Cannot modify header information - headers already sent by (output started at on line 41) Can u please help on me

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

      It's just a warning. Hit refresh or change code so there is no echo output before any "header ('Location: ..."

  • @MarkS-fc6bf
    @MarkS-fc6bf Рік тому

    I registered my web application at Microsoft Azure and tried several settings. I have done a lot of research that allows me to connect to the mailbox to be able to read the mails without going through an interaction with a user. I've found nothing. Does anyone have a step-by-step solution.

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

      You can use Microsoft Graph API. And you can practice here: developer.microsoft.com/en-us/graph/graph-explorer

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

    Why do I have to set the $secret variable, if the script doesn't use it? I didn't see it in the php scripts.

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

    Your code is great but I don't know why you declare variable $secret but you don't use it ? Second my question is after login my token is expired only 1 hour how add refresh_token?

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

      That $secret is a leftover, its not needed. The refresh_token is a topic for another tutorial for which I didn't have time yet :)

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

    Clearly explained, works almost out of the box. Thank you.

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

    Hi! Is it possible to log out of microsoft from the script? Thanks for the tutorial

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

      You redirect the user to this link: login.microsoftonline.com/tenant-id/oauth2/v2.0/logout

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

      @@radudragos Thanks dude 😁

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

    Congratulations and thank you very much! Helped me a lot. 🤝

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

    Error: specified in the request does not match the redirect URIs configured for the application due to http_build_query() function

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

      Make sure your redirect_uri in the code matches the one registered in Azure AD for this app..

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

    Hello redu, is it possible run it in our localhost?

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

      Yes it is possible. Microsoft accepts localhost as a redirect URI.

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

    Respect ! Very struked and simply explained! ! Great work !

  • @Faisal-ss1ff
    @Faisal-ss1ff 2 роки тому

    a lot of thanks bro

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

    omfg you made my life so much easier tyvm

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

    hi, i have this error: CompactToken parsing failed with error code: 80049217 after this line: $rez = json_decode(curl_exec($ch), 1); please help

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

      HOla amigo! al final te funcionó el código?

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

    Hi, thanks for the tutorial. It works well. How can I get the email instead of the name. What parameter should I put in $_SESSION["uname"] to get the email?

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

      Hi, it is either "mail" or "userPrincipalName". However, you can practice your query here: developer.microsoft.com/en-us/graph/graph-explorer

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

    Awesome tuts... You are too underrated... Please work on SEO

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

    sound is very low 😅

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

      Ty, I will upload an enhanced audio version.

  • @adamkhalifa2657
    @adamkhalifa2657 4 роки тому

    amazing explanation. You're the best !

  • @heartstriker2831
    @heartstriker2831 4 роки тому

    Thank you, you are a life saver

  • @thebigboss1035
    @thebigboss1035 4 роки тому

    cam slab tutorialu

  • @t3jv1l37
    @t3jv1l37 4 роки тому

    Da ai putea sa faci un curs bine structurat de Assembly Language, m-ar ajuta mult . Si partea de retelistica e foarte bine explicata, sper sa mai faceti videoclipuri.

  • @andreiardelean5712
    @andreiardelean5712 4 роки тому

    Sunteti zeu, domn profesor!!!

  • @Adrian-fe1wm
    @Adrian-fe1wm 4 роки тому

    2020 and we're still here

  • @andreiardelean5712
    @andreiardelean5712 4 роки тому

    explicati mai bine decat domnul Bufny, tot respectul!!!

  • @TheTAGplay
    @TheTAGplay 5 років тому

    trebuia sa-i puneti titlul this is AWKward ( sa fie pe masura lui Shell in a nutshell )

  • @eduardceausoglu7603
    @eduardceausoglu7603 5 років тому

    multumim pentru tutorial! <3

  • @TheBacktracklinux
    @TheBacktracklinux 5 років тому

    Super

  • @babarraza
    @babarraza 6 років тому

    Can i get a whole course on it

  • @babarraza
    @babarraza 6 років тому

    great work!!

  • @qtpie2630
    @qtpie2630 6 років тому

    you are a genius mate there are people on internet forums saying you'd need to write network drivers in order to use socket in assembly what a bunch of bullshit

  • @michelleguzman7757
    @michelleguzman7757 6 років тому

    Lifesaver!

  • @liammwaghorn
    @liammwaghorn 6 років тому

    the way you partially type code, teach, then fill it in makes it very easy to follow. Thank you