- 66
- 170 722
radu dragos
Приєднався 13 лип 2010
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
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
Відео
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.
It is working but I am not able fetch the username nor email post auth, Can you please help me?
Thank you !
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
Great video, simple and to the point... Good work, and keep it going 🙂
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!!
Thank You
Man, you got my respect. I searched for weeks to understand how to integrate and you make it clear in 6 minutes. Thank you!
Foarte frumos construita..cum as putea lua legatura cu dvs,am un proiect la care nu ma descurc,ma puteti ajuta?
A redirect (header) after an echo "<h1>..." is not allowed
thanks! this helped a lot!
thx bro u great
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?
all logon securtiy is handled by ms or a federated server. there is no need to do additional captcha's
Wow awesome video, straight to the point and works. Super helpful, thank you!!!
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
Thanks
Thank you so much! i looked for stuff like this for days
Hi Radu. I have followed the steps indicated. When doing the login, the Microsoft page never appears requesting the application permissions.
same here
De foarte mare ajutor. Mulțumim, domnule profesor!
Respect
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
It's just a warning. Hit refresh or change code so there is no echo output before any "header ('Location: ..."
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.
You can use Microsoft Graph API. And you can practice here: developer.microsoft.com/en-us/graph/graph-explorer
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.
You don't :)
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?
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 :)
Clearly explained, works almost out of the box. Thank you.
Hi! Is it possible to log out of microsoft from the script? Thanks for the tutorial
You redirect the user to this link: login.microsoftonline.com/tenant-id/oauth2/v2.0/logout
@@radudragos Thanks dude 😁
Congratulations and thank you very much! Helped me a lot. 🤝
Error: specified in the request does not match the redirect URIs configured for the application due to http_build_query() function
Make sure your redirect_uri in the code matches the one registered in Azure AD for this app..
Hello redu, is it possible run it in our localhost?
Yes it is possible. Microsoft accepts localhost as a redirect URI.
Respect ! Very struked and simply explained! ! Great work !
a lot of thanks bro
omfg you made my life so much easier tyvm
hi, i have this error: CompactToken parsing failed with error code: 80049217 after this line: $rez = json_decode(curl_exec($ch), 1); please help
HOla amigo! al final te funcionó el código?
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?
Hi, it is either "mail" or "userPrincipalName". However, you can practice your query here: developer.microsoft.com/en-us/graph/graph-explorer
Awesome tuts... You are too underrated... Please work on SEO
sound is very low 😅
Ty, I will upload an enhanced audio version.
amazing explanation. You're the best !
Thank you, you are a life saver
cam slab tutorialu
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.
Sunteti zeu, domn profesor!!!
2020 and we're still here
explicati mai bine decat domnul Bufny, tot respectul!!!
trebuia sa-i puneti titlul this is AWKward ( sa fie pe masura lui Shell in a nutshell )
multumim pentru tutorial! <3
Super
Can i get a whole course on it
great work!!
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
Lifesaver!
the way you partially type code, teach, then fill it in makes it very easy to follow. Thank you