Skip to content

MSCommunityDevUgRi/AzureActiveDirectoryHandsOn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AzureActiveDirectoryHandsOn

Repozitorij u svrhu predavanja MS Community Dev UG Rijeka

1. Register an application in Azure
2. Create a web project without authentication
3. Install packages
	Install-Package Microsoft.Owin.Security.OpenIdConnect
	Install-Package Microsoft.Owin.Security.Cookies
	Install-Package Microsoft.Owin.Host.SystemWeb
	Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory
	Install-Package Microsoft.Azure.ActiveDirectory.GraphClient

4. Add Owin startup class
5. Make a partial class with Configure method
6. Write Code for Startup.Auth.cs
	a. Insert values for following things:
			<add key="ida:ClientId" value="" />
			<add key="ida:Key" value="" />
			<add key="ida:Tenant" value="" />
			<add key="ida:AADInstance" value="" />
			<add key="ida:PostLogoutRedirectUri" value="" />
7. Enable https on a project and setup virtual directory
8. Set [Authorize] attribute
9. Copy/paste code regarding Graph API

About

Repozitorij u svrhu predavanja MS Community Dev UG Rijeka

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published