-
Notifications
You must be signed in to change notification settings - Fork 776
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1357 from OfficeDev/v-hrajandira/CsharpNewToolkit…
…PR14 PR 14 - Implement New toolkit version csharp samples
- Loading branch information
Showing
47 changed files
with
1,194 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
samples/graph-change-notification/csharp/ChangeNotification.slnLaunch.user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"Name": "Microsoft Teams (browser)", | ||
"Projects": [ | ||
{ | ||
"Path": "ChangeNotification\\ChangeNotification.csproj", | ||
"Action": "Start", | ||
"DebugTarget": "Start Project" | ||
}, | ||
{ | ||
"Path": "TeamsApp\\TeamsApp.ttkproj", | ||
"Action": "StartWithoutDebugging", | ||
"DebugTarget": "Microsoft Teams (Browser)" | ||
} | ||
] | ||
} | ||
] |
25 changes: 25 additions & 0 deletions
25
samples/graph-change-notification/csharp/ChangeNotification/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# TeamsFx files | ||
build | ||
appPackage/build | ||
env/.env.*.user | ||
env/.env.local | ||
appsettings.Development.json | ||
.deployment | ||
|
||
# User-specific files | ||
*.user | ||
|
||
# Build results | ||
[Dd]ebug/ | ||
[Dd]ebugPublic/ | ||
[Rr]elease/ | ||
[Rr]eleases/ | ||
x64/ | ||
x86/ | ||
bld/ | ||
[Bb]in/ | ||
[Oo]bj/ | ||
[Ll]og/ | ||
|
||
# Notification local store | ||
.notification.localstore.json |
26 changes: 6 additions & 20 deletions
26
samples/graph-change-notification/csharp/ChangeNotification/Properties/launchSettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,13 @@ | ||
{ | ||
"iisSettings": { | ||
"windowsAuthentication": false, | ||
"anonymousAuthentication": true, | ||
"iisExpress": { | ||
"applicationUrl": "http://localhost:3978/", | ||
"sslPort": 0 | ||
} | ||
}, | ||
{ | ||
"profiles": { | ||
"IIS Express": { | ||
"commandName": "IISExpress", | ||
"launchBrowser": true, | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
} | ||
}, | ||
"AuthenticationBot": { | ||
"Start Project": { | ||
"commandName": "Project", | ||
"launchBrowser": true, | ||
"dotnetRunMessages": true, | ||
"applicationUrl": "https://localhost:7130;http://localhost:5130", | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
}, | ||
"applicationUrl": "http://localhost:3978/" | ||
"hotReloadProfile": "aspnetcore" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
samples/graph-change-notification/csharp/TeamsApp/TeamsApp.ttkproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" Sdk="Microsoft.TeamsFx.Sdk"> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectGuid>f9f76b0b-73f7-4752-bc87-3abbd6c4da19</ProjectGuid> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectCapability Include="ProjectConfigurationsDeclaredDimensions" /> | ||
</ItemGroup> | ||
</Project> |
111 changes: 111 additions & 0 deletions
111
samples/graph-change-notification/csharp/TeamsApp/aad.manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
{ | ||
"id": "${{AAD_APP_OBJECT_ID}}", | ||
"appId": "${{AAD_APP_CLIENT_ID}}", | ||
"name": "graph-change-notification-aad", | ||
"accessTokenAcceptedVersion": 2, | ||
"signInAudience": "AzureADMultipleOrgs", | ||
"oauth2AllowIdTokenImplicitFlow": true, | ||
"oauth2AllowImplicitFlow": true, | ||
"optionalClaims": { | ||
"idToken": [], | ||
"accessToken": [ | ||
{ | ||
"name": "idtyp", | ||
"source": null, | ||
"essential": false, | ||
"additionalProperties": [] | ||
} | ||
], | ||
"saml2Token": [] | ||
}, | ||
"requiredResourceAccess": [ | ||
{ | ||
"resourceAppId": "Microsoft Graph", | ||
"resourceAccess": [ | ||
{ | ||
"id": "User.Read", | ||
"type": "Scope" | ||
}, | ||
{ | ||
"id": "Presence.Read", | ||
"type": "Scope" | ||
}, | ||
{ | ||
"id": "Presence.Read.All", | ||
"type": "Scope" | ||
} | ||
] | ||
} | ||
], | ||
"oauth2Permissions": [ | ||
{ | ||
"adminConsentDescription": "Allows Teams to call the app's web APIs as the current user.", | ||
"adminConsentDisplayName": "Teams can access app's web APIs", | ||
"id": "${{AAD_APP_ACCESS_AS_USER_PERMISSION_ID}}", | ||
"isEnabled": true, | ||
"type": "User", | ||
"userConsentDescription": "Enable Teams to call this app's web APIs with the same rights that you have", | ||
"userConsentDisplayName": "Teams can access app's web APIs and make requests on your behalf", | ||
"value": "access_as_user" | ||
} | ||
], | ||
"preAuthorizedApplications": [ | ||
{ | ||
"appId": "1fec8e78-bce4-4aaf-ab1b-5451cc387264", | ||
"permissionIds": [ | ||
"${{AAD_APP_ACCESS_AS_USER_PERMISSION_ID}}" | ||
] | ||
}, | ||
{ | ||
"appId": "5e3ce6c0-2b1f-4285-8d4b-75ee78787346", | ||
"permissionIds": [ | ||
"${{AAD_APP_ACCESS_AS_USER_PERMISSION_ID}}" | ||
] | ||
}, | ||
{ | ||
"appId": "d3590ed6-52b3-4102-aeff-aad2292ab01c", | ||
"permissionIds": [ | ||
"${{AAD_APP_ACCESS_AS_USER_PERMISSION_ID}}" | ||
] | ||
}, | ||
{ | ||
"appId": "00000002-0000-0ff1-ce00-000000000000", | ||
"permissionIds": [ | ||
"${{AAD_APP_ACCESS_AS_USER_PERMISSION_ID}}" | ||
] | ||
}, | ||
{ | ||
"appId": "bc59ab01-8403-45c6-8796-ac3ef710b3e3", | ||
"permissionIds": [ | ||
"${{AAD_APP_ACCESS_AS_USER_PERMISSION_ID}}" | ||
] | ||
}, | ||
{ | ||
"appId": "0ec893e0-5785-4de6-99da-4ed124e5296c", | ||
"permissionIds": [ | ||
"${{AAD_APP_ACCESS_AS_USER_PERMISSION_ID}}" | ||
] | ||
}, | ||
{ | ||
"appId": "4765445b-32c6-49b0-83e6-1d93765276ca", | ||
"permissionIds": [ | ||
"${{AAD_APP_ACCESS_AS_USER_PERMISSION_ID}}" | ||
] | ||
}, | ||
{ | ||
"appId": "4345a7b9-9a63-4910-a426-35363201d503", | ||
"permissionIds": [ | ||
"${{AAD_APP_ACCESS_AS_USER_PERMISSION_ID}}" | ||
] | ||
} | ||
], | ||
"identifierUris":[ | ||
"api://botid-${{AAD_APP_CLIENT_ID}}" | ||
], | ||
"replyUrlsWithType":[ | ||
{ | ||
"url": "https://token.botframework.com/.auth/web/redirect", | ||
"type": "Web" | ||
} | ||
] | ||
} |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
26 changes: 26 additions & 0 deletions
26
samples/graph-change-notification/csharp/TeamsApp/env/.env.local
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This file includes environment variables that can be committed to git. It's gitignored by default because it represents your local development environment. | ||
|
||
# Built-in environment variables | ||
TEAMSFX_ENV=local | ||
APP_NAME_SUFFIX=local | ||
|
||
# Generated during provision, you can also add your own variables. | ||
BOT_ID= | ||
TEAMS_APP_ID= | ||
RESOURCE_SUFFIX= | ||
AZURE_SUBSCRIPTION_ID= | ||
AZURE_RESOURCE_GROUP_NAME= | ||
AAD_APP_CLIENT_ID= | ||
AAD_APP_OBJECT_ID= | ||
AAD_APP_TENANT_ID= | ||
AAD_APP_OAUTH_AUTHORITY= | ||
AAD_APP_OAUTH_AUTHORITY_HOST= | ||
TEAMS_APP_TENANT_ID= | ||
MICROSOFT_APP_TYPE= | ||
MICROSOFT_APP_TENANT_ID= | ||
CONNECTION_NAME= | ||
AAD_APP_ACCESS_AS_USER_PERMISSION_ID= | ||
TEAMSFX_M365_USER_NAME= | ||
|
||
BOT_ENDPOINT= | ||
BOT_DOMAIN= |
Oops, something went wrong.