Time
19 hours 58 minutes
Difficulty
Intermediate
CEU/CPE
9

Video Transcription

00:00
Welcome back. This is the first episode of Montreuil five, where we're going to talk a little bit about authentication.
00:07
My objectives include taking a look at some authentication protocols, talking about what as your B to C is
00:14
understanding what APP registrations are and then jumping out to the azure portal to take a look at a demo of azure B to C and half registrations.
00:22
So to get us started, let's talk about what is authentication. I know it may seem like a pretty basic topic, but I want to go through and talk about a few things for it. Authentication is proving who you are by completing some type of challenge. Typically, providing a password to your identity or use her name
00:39
and usually associated with authentication is authorization and authorization is where this authenticated identity is then given access to do something like access a resource or make a change.
00:51
Authorization is what determines what you can do with data. Microsoft provides a platform for developers to implement authentication and their applications. This platform supports industry standard protocols like oh, off too, and open I d connect an additional open source libraries when using Microsoft as your identity platform in applications.
01:11
It's the identity providers responsibility to verify the users and the applications inside its directory
01:17
and then issues security tokens when the authentication is successful.
01:21
When using Microsoft as your identity provider, there are a couple of supported authentication types. The first is Web Service Federation or a typically abbreviated WS federation, or WS fed. This is used to enable identity, authentication and authorization across different trust realms
01:38
and a trust realm. It's just a set of authentication servers that is used to manage a set of unique identities.
01:44
So, for example, one realm could be azure active directory itself. So Ws Federation allows for user's to authenticate across different identity providers and is typically seen implemented with Active Directory Federation Service's or A D. F s. But it can be found in. Others do know, though, that Ws Fed is a little bit of an older protocol.
02:02
Our next one is open authentication or oh off,
02:06
and it's an industry standard for providing authorization to Resource is both defines the methods to obtain a user access token and then obtain access to the resource is on behalf of the resource owner Open I D Connect extends Oh off two by providing a method to provide information about the end user in an I D token.
02:25
This verified the user's identity but also provides basic profile information about the user.
02:30
Open I D Connect would be used in a Web application hosted on a server that has access via browser. Both go off and open I D Connect. Allow developers to authenticate to multiple Microsoft identities, including work or school accounts provided by as your i D
02:46
personal Microsoft accounts like outlook dot com or Xbox, or to social or local accounts through Azure 80 B to C or Business to consumer, which we'll talk about later than this episode.
02:55
Finally, we have Samel 2.0, which is used to exchange users authentication and authorization data between different systems using XML. Samuel works by taking the user's identity that's been verified by the identity provider and then transferring it to another system so user has already authenticated against their identity provider
03:15
then that is used to access another system.
03:16
Samuel is typically found in a single sign on scenario where the user does not need to type in their credentials again to access the system or application as your active directory uses the sample protocol to provide the single sign on experience for user's.
03:31
Now the less lied. I didn't mention azure be to see. So let's talk about that for a minute. As your B to C or business to consumer allows application developers to create applications where users can log into the service using their preferred identity. This could be anything from a social media account, enterprise or local identity.
03:49
Asher's be to see platform is scalable to support billions off authentication request every day and has built in monitoring capabilities
03:57
to protect against denial of service attacks, password spray or brute force attacks as your B to C can utilize authentication protocols like Open I D Connect Oath to and Samuel. And if you want to use as your B to see inside of your tenant, it requires creating a second directory inside of Azure to host the identities.
04:15
This is very similar how we created a second test directory in earlier episodes, and we're gonna cover how to create one inside this demo.
04:23
Next, let's talk about APP registration. If you're creating an application that requires authentication into azure, I D you're gonna need to create a nap. Registration Act Frustrations Allow an app to interact with Azure 80 on behalf of the user. This basically allows developers to create APS using Microsoft as the identity platform.
04:41
And inside the APPA registration, you can configure two types of credentials.
04:45
You can upload a client certificate or generate a client secret, which is like a username and password for the application that does it For some of our concepts. Let's jump out to the azure portal to create an azure, be to see directory and then also create an app registration
05:00
back here in our azure portal. Let's go create our azure. Be to see your resource first.
05:05
It was like to create a resource search for B to C.
05:10
And so, like azure active directory B to C
05:15
First, we need to create a new azure. Be to see tenant.
05:18
We need to give it an organization name
05:23
and a domain name.
05:30
Once the directory is created, go ahead and select the Create new B to C Tenet or link to existing Tonight link up here,
05:38
we're gonna go back and link the existing Azure A D B. D. C. tenant to our azure subscription.
05:45
Here we can select the available tenants.
05:48
We're gonna associate it to our Azure standards description that we have and select a resource group. I don't have one right now, so let's go ahead and create a new one
06:00
and select the location
06:05
with our B to C directory created and associated with our subscription. Let's scroll down. Let's go to Azure Active Directory
06:14
will select Switch Directory.
06:16
You can see our default directory that we created when we created our trial tenant as well as our test one, but I don't see her be to see. So let's go ahead and refresh the whole browser.
06:31
Let's go back to switch directory
06:33
and after a refresh, weaken CR B to C tenant that we created right down here. Let's go into it real quick,
06:46
and you can see our B to see as your active directory looks a lot like our regular active directory
06:50
stuff of users, groups, rolls and administrators.
06:55
We have ability for custom domain names, company branding
06:59
and security with conditional access. An M. F. A.
07:03
Let's jump back to our default directory
07:14
back here in our default directory. We also want to take a look at AP registrations. So under manage, let's navigate to AP registrations.
07:21
We're going to create a new registration
07:25
and give our application a name,
07:28
and we have a couple options here for supported account types. This is basically who is going to be able to use the application or access the A P I.
07:35
The default option here is accounts only in this organizational directory, which is R A Z 300 Tech director. You've been working it all along?
07:44
No, they have the option to say inside of any organization. So this would be any azure, a D directory or in a multi tenant scenario,
07:51
and our third option is accounts in any organizational directory or using personal Microsoft accounts like a Skype or Xbox account.
07:59
Right now, we're just gonna stick with this organizational directory only
08:05
once a rap is created here in the overview page, we have quite a bit of information we need for the application. First, we have a client, I d. This is the I D that is going to be used inside the application in order to access Resource is inside our azure 80 tenant.
08:20
Let's go down to certificates and secrets.
08:24
This is where we can upload a certificate in order to prove the applications identity when requesting a token and trying to access. Resource is
08:33
we also have client secrets, which is basically an app, user name and password. Let's go and create a new client secret real quick.
08:39
We need to give it a description and then when it will expire one year to year or never.
08:46
Let's go ahead and add for just one year.
08:50
And here we have the description we just gave it. It expires in one year and then the value of our client secret.
08:56
And it's very important that once this pops up right here, you will need to copy this value as you're not going to see it again after you move away from this page.
09:05
So this client secret in conjunction with our client I D. That we saw in the over you page is what we'll use in our application to prove its identity when requesting a token and then going and accessing resource is
09:16
next. Let's check out a PR permissions.
09:20
This is basically the Russians that were authorizing this Web app to be able to call and use as part of the application.
09:26
For example, right now we have Microsoft Graf being able to sign in and read the user profile.
09:33
Let's go and add another permission.
09:37
Well, it's like Microsoft graph a p I
09:41
and we have two options here. We have delegated permissions, which means the application is gonna access the AP I as the signed in user to the application. Or we have application permissions where the application might run as a background service or Damon without a signed in user. I'm gonna choose application permissions because let's say my Web app is not gonna have a signed in user for it.
10:01
And then we have permissions we can assign
10:03
and we can allow this app registration read right. Access to all the calendars in the mail boxes inside our tenant.
10:13
Once our permissions have been granted for the a P. I.
10:16
You a little warning here to say Wait 10 seconds because then you have to grant admin consent for the A P I
10:24
and that Does it are Edmund Consent was completed for the requester depressions. We just added, And just to prove one thing about that app secret,
10:33
let's go back to certificates and secrets,
10:35
and you can see the value of rap Secret is now blanked out. So if you didn't copy down the first time, you're just gonna have to remove this one and create a new one that does it for our demo. Let's jump back to the slides and wrap this up.
10:48
That does it for this episode, talking about authentication and some identity topics coming up. Next, we're going to take a look at managed identities. See you in the next episode.

Up Next

AZ-300: Microsoft Azure Architect Technologies

Azure Solution Architects are responsible for taking business requirements and turning them into solutions. This AZ-300 training provides an introduction into Azure, Microsoft’s cloud platform whilst preparing students to take the Microsoft Azure Architect Technologies certification.

Instructed By

Instructor Profile Image
Jeff Brown
Instructor