Build a website using Azure Static Web Apps and Authenticate with AAD

  Рет қаралды 11,266

Doug Does Tech

Doug Does Tech

Күн бұрын

Пікірлер: 30
@artorhemnnahs
@artorhemnnahs 8 ай бұрын
I rarely post, but when I do, it's to say thanks. This helped a lot. Very clear.
@dominikmeyer8078
@dominikmeyer8078 Жыл бұрын
I rarely if ever comment a KZbin video (unthankful ass). But I have to: This video made my deployment work on the first run including AAD (tenant specific) authentication! Thank you, very on point!
@karansingh-n9k6k
@karansingh-n9k6k Жыл бұрын
Your video help me a lot, even the official documentation confuses on how to configure SWA easily. You video did the trick. Thanks or creating this
@fernandofischer3725
@fernandofischer3725 4 ай бұрын
Awesome video, Thanks!! Would definitely love seeing a B2C walkthrough.
@1988alpesh
@1988alpesh Жыл бұрын
Great stuff :), happy to watch
@abdalrahman6124
@abdalrahman6124 Жыл бұрын
thank you for the video, it's very helpful, good luck with future content. yes it will be very great if we can see the B To C integration
@ScalarRon
@ScalarRon Жыл бұрын
I ran into all the same problems. The custom auth requirement definitely isn't straight forward. Thanks, Doug!
@sistemasfbm1617
@sistemasfbm1617 2 ай бұрын
excelente video! muchisimas gracias por la ayuda, muy didáctico
@puduville1
@puduville1 9 ай бұрын
Please show us how to connect to AAD B2c please!
@tancouver
@tancouver 7 ай бұрын
Thanks, Doug. This really helped me. For some reason, the manifest.json linked in the index.html causes unintentional redirects whenever I try to add any type of authentication. I just removed it and that helped me for now. Weird how this doesn't come up in your example, making me think this could be something specific to my organizational tenant.
@omnizsk
@omnizsk Жыл бұрын
How do you ensure unique content for each logged in user? I think some real world example with more popular react framework such as nextjs or remixjs would help a lot.
@cacurazi
@cacurazi 9 ай бұрын
Bro, how many times do you have to sneeze 🤧? Jesus Christ 😭 Anyway, this was wonderful. Keep it up!!
@Muhammadmiftahofficial
@Muhammadmiftahofficial Жыл бұрын
Thank you!
@goatinvader2281
@goatinvader2281 Жыл бұрын
Great video. i am also interested in the B to C config. I was hoping to be able to support AAD and a third party saml provider.
@andreabovo5208
@andreabovo5208 10 ай бұрын
Is it possible to test it on local? If not is going to be difficult to use in real scenarios. Maybe better use MSAL
@asemerci
@asemerci Жыл бұрын
God bless you 😁
@seadude
@seadude Жыл бұрын
Thanks for putting this video together. For some reason, the `staticwebapp.config.json` file isn't being respected. I pasted the same values you did from the MS Learn page, but there is no auth being enforced when I open the page, even in an incognito window. Do you have any thoughts on this one?
@seadude
@seadude Жыл бұрын
Hm...yeah. I just re-created the Azure Static Web App, upgraded to Standard plan, created the `staticwebapp.config.json` file, same issue. I can't get the route /* to work. The website loads with no auth prompt. I'm using `mkdocs` instead of `docusaurus`, but that shouldn't affect anything.
@DougDoesTech
@DougDoesTech Жыл бұрын
That’s weird, all I can think is the file is in the wrong directory or some how not getting deployed? Do you have a public git hub you can share?
@seadude
@seadude Жыл бұрын
Figured it out...@16:54, just to the right of where you highlighted. "...in the folder set as app_location in the workflow file." For mkdocs, the app_location is /site. Had to move the staticwebapp.config.json into that directory. Now it works! Thank you again for making this video. All the other vids I watched were using React, Vue, etc. They were too complex. This was perfect.
@seadude
@seadude Жыл бұрын
@@DougDoesTech yep, that was it!
@Js_9_2
@Js_9_2 16 күн бұрын
@@seadude I'm trying to implement authentication on my mkdocs site, there's also something wrong with the route, the site loads but the authentication doesn't, as mentioned the file should go in the /site folder, but my site doesn't have this folder I think it's in the root /, should I deploy it again in a folder called /site, is that where the code and static config should go for authentication to work? I'm new to this, I would appreciate the help.
@puneetkapoor6548
@puneetkapoor6548 Жыл бұрын
I followed the same steps but it didn't ask for the password, rather it says 401 Unauthorized access when I open the Web app URL
@DougDoesTech
@DougDoesTech Жыл бұрын
You need to add the redirect code on 401
@puneetkapoor6548
@puneetkapoor6548 Жыл бұрын
@@DougDoesTech I have used the same json which you showed in your example. So it has the redirect tag but not sure why it is not redirecting to auth page.
@puneetkapoor6548
@puneetkapoor6548 Жыл бұрын
@@DougDoesTech Thanks for your help I found the issue. It was something else. :)
@DougDoesTech
@DougDoesTech Жыл бұрын
Nice! What was it?
@puneetkapoor6548
@puneetkapoor6548 Жыл бұрын
@@DougDoesTech I was not pushing the staticwebapp.config.json file from the repo because the static content was part of a pipeline in Azure. So I was creating this JSON file from the command line and I forgot to escape the JSON due to which it was not reading the redirect code. Anyways thanks a lot it saved a lot of time after watching your video. :)
Getting started with Azure Static Web Apps | Azure Friday
20:25
Microsoft Azure
Рет қаралды 33 М.
Azure AD App Registrations, Enterprise Apps and Service Principals
33:44
John Savill's Technical Training
Рет қаралды 237 М.
New API back-end options in Azure Static Web Apps | Azure Friday
20:05
Microsoft Azure
Рет қаралды 17 М.
Microsoft 365 Security Basics: Exchange Online
29:27
Doug Does Tech
Рет қаралды 2 М.
Free Website Hosting with Microsoft Azure Static Web Apps
19:17
John Savill's Technical Training
Рет қаралды 26 М.
Azure Active Directory (AD, AAD) Tutorial | Identity and Access Management Service
30:57
Adam Marczak - Azure for Everyone
Рет қаралды 723 М.
Why Use Azure Static Web Apps
6:23
Microsoft Azure Developers
Рет қаралды 8 М.
Get started with Azure Static Web Apps | Tips & Tricks
8:46
Microsoft 365 Developer
Рет қаралды 13 М.
AWS UG Giza  Event
3:48:27
Advizors
Рет қаралды 2,1 М.