Skip to content

Commit

Permalink
python sample
Browse files Browse the repository at this point in the history
  • Loading branch information
PramodKumarHK89 committed Jun 3, 2022
1 parent a242e22 commit 0f89e91
Showing 1 changed file with 187 additions and 1 deletion.
188 changes: 187 additions & 1 deletion IdAceCodeEditor/Config/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"DisplayName": "Web-OIDC-Scenario-1",
"SignInAudience": "AzureADMyOrg",
"AppType": "Web",
"RedirectUri": "https://localhost:44321/",
"RedirectUri": "https://localhost:44321/signin-oidc",
"IsHybridFlow": "True",
"IsDeviceCodeFlow": "",
"SecretName": "",
Expand Down Expand Up @@ -92,6 +92,102 @@
}
]
},
{
"Name": "Call Microsoft Graph",
"Type": "ASP.NETCOREWEB",
"DisplayName": "Enable your ASP.NET Core web app to sign in users and call Microsoft Graph with the Microsoft identity platform",
"WorkingFolder": "2-WebApp-graph-user\\2-1-Call-MSGraph",
"Tags": [
{ "Name": "Web App" },
{ "Name": "Asp.Net Core" },
{ "Name": "Identity.Web" },
{ "Name": "Auth Code Flow" }
],
"GitHubRepoSettings": {
"ReadMeLink": "https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/tree/master/2-WebApp-graph-user/2-1-Call-MSGraph",
"TutorialLink": "https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-v2-aspnet-core-webapp",
"ClonePath": "https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2.git",
"LocalPath": "ASP.NETCORE\\CallMsGraph"
},
"Projects": [
{
"Name": "Client Project",
"ProjectPath": "2-WebApp-graph-user\\2-1-Call-MSGraph",
"Order": "0",
"PortalSettings": {
"DisplayName": "WebApp-OpenIDConnect-DotNet-graph-v2",
"SignInAudience": "AzureADMyOrg",
"AppType": "Web",
"RedirectUri": "https://localhost:44321/signin-oidc",
"IsHybridFlow": "True",
"IsDeviceCodeFlow": "",
"SecretName": "mysecret",
"Certificate": "",
"RequiredResourceAccesss": [
{
"ResourceAppId": "00000003-0000-0000-c000-000000000000",
"ResourceAccesss": [
{
"Id": "e1fe6dd8-ba31-4d61-89e7-88639da4683d",
"Type": "Scope"
}
]
}
]
},
"ReplacementFields": [
{
"Name": "ClientId",
"ReplacementType": "JSON",
"Section": "AzureAd",
"Source": "persistdata:Projects[0].App.AppId",
"Destination": "ClientId",
"FileName": "appsettings.json"
},
{
"Name": "TenantId",
"ReplacementType": "JSON",
"Section": "AzureAd",
"Format": "",
"Source": "persistdata:Projects[0].TenantId",
"Destination": "TenantId",
"FileName": "appsettings.json"
},
{
"Name": "ClientSecret",
"Section": "AzureAd",
"ReplacementType": "JSON",
"Source": "persistdata:Projects[0].SecretText",
"Destination": "ClientSecret",
"FileName": "appsettings.json"
},
{
"Name": "Domain",
"ReplacementType": "JSON",
"Section": "AzureAd",
"Format": "",
"Source": "persistdata:Projects[0].Domain",
"Destination": "Domain",
"FileName": "appsettings.json"
}
]
}
],
"Prerequisites": [
{
"Name": "VSCode",
"DownloadLink": "https://code.visualstudio.com/download"
},
{
"Name": "DotNetCore",
"DownloadLink": "https://dotnet.microsoft.com/en-us/download/dotnet/3.1"
},
{
"Name": "VisualStudio",
"DownloadLink": "https://visualstudio.microsoft.com/downloads/"
}
]
},
{
"Name": "Web App Calling Web API",
"Type": "ASP.NETCOREWEB",
Expand Down Expand Up @@ -1152,6 +1248,96 @@
]
}
]
},
{
"Name": "Python flask",
"DisplayName": "Python flask",
"Samples": [
{
"Name": "Sign In Users",
"Type": "PythonFlask",
"DisplayName": "Enable your Python Flask webapp to sign in users to your Azure Active Directory tenant with the Microsoft identity platform",
"WorkingFolder": "",
"Tags": [
{ "Name": "Web App" },
{ "Name": "Python Flask" },
{ "Name": "MSAL Python" },
{ "Name": "Auth Code Flow" }
],
"GitHubRepoSettings": {
"ReadMeLink": "https://github.com/Azure-Samples/ms-identity-python-flask-webapp-authentication",
"TutorialLink": "https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-python-token-cache-serialization",
"ClonePath": "https://github.com/Azure-Samples/ms-identity-python-flask-webapp-authentication.git",
"LocalPath": "PythonFlask\\SignIn"
},
"Projects": [
{
"Name": "Client Project",
"ProjectPath": "",
"Order": "0",
"PortalSettings": {
"DisplayName": "python-flask-webapp-auth-my-tenant",
"SignInAudience": "AzureADMyOrg",
"AppType": "Web",
"RedirectUri": "https://127.0.0.1:5000/auth/redirect",
"IsHybridFlow": "",
"IsDeviceCodeFlow": "",
"SecretName": "mysecret",
"Certificate": "",
"RequiredResourceAccesss": [
{
"ResourceAppId": "00000003-0000-0000-c000-000000000000",
"ResourceAccesss": [
{
"Id": "e1fe6dd8-ba31-4d61-89e7-88639da4683d",
"Type": "Scope"
}
]
}
]
},
"ReplacementFields": [
{
"Name": "ClientId",
"ReplacementType": "JSON",
"Section": "client",
"Source": "persistdata:Projects[0].App.AppId",
"Destination": "client_id",
"FileName": "aad.config.json"
},
{
"Name": "TenantId",
"ReplacementType": "JSON",
"Section": "client",
"Format": "https://login.microsoftonline.com/{0}",
"Source": "persistdata:Projects[0].TenantId",
"Destination": "authority",
"FileName": "aad.config.json"
},
{
"Name": "ClientSecret",
"ReplacementType": "JSON",
"Section": "client",
"Format": "",
"Source": "persistdata:Projects[0].SecretText",
"Destination": "client_credential",
"FileName": "aad.config.json"
}
]
}
],
"Prerequisites": [
{
"Name": "VSCode",
"DownloadLink": "https://code.visualstudio.com/download"
},
{
"Name": "Python",
"DownloadLink": "https://www.python.org/downloads/release/python-380/"
},
]
}
]
}
]
}
Expand Down

0 comments on commit 0f89e91

Please sign in to comment.