-
Notifications
You must be signed in to change notification settings - Fork 785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement New toolkit version csharp samples #1445
Open
Harikrishnan-MSFT
wants to merge
8
commits into
main
Choose a base branch
from
v-hrajandira/CsharpTTKMigrationPR2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
0c0bffb
Implement New toolkit version csharp samples
Harikrishnan-MSFT 126f621
Add User File
Harikrishnan-MSFT 27a664d
Update Project File
Harikrishnan-MSFT 9390cf6
Updating Readme
Harikrishnan-MSFT 5d1fdcf
Merge remote-tracking branch 'origin/main' into v-hrajandira/CsharpTT…
Harikrishnan-MSFT fb3f73b
Ashlesha - Implement New toolkit version csharp samples
Harikrishnan-MSFT d162514
Merge remote-tracking branch 'origin/main' into v-hrajandira/CsharpTT…
Harikrishnan-MSFT eb46461
Fixed PR Comments
Harikrishnan-MSFT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
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
28 changes: 7 additions & 21 deletions
28
samples/app-anonymous-users/csharp/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,28 +1,14 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/launchsettings.json", | ||
"iisSettings": { | ||
"windowsAuthentication": false, | ||
"anonymousAuthentication": true, | ||
"iisExpress": { | ||
"applicationUrl": "http://localhost:3978", | ||
"sslPort": 0 | ||
} | ||
}, | ||
"profiles": { | ||
"IIS Express": { | ||
"commandName": "IISExpress", | ||
"launchBrowser": true, | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
} | ||
}, | ||
".NET Core": { | ||
|
||
"Start Project": { | ||
"commandName": "Project", | ||
"launchBrowser": true, | ||
"applicationUrl": "http://localhost:3978", | ||
"dotnetRunMessages": true, | ||
"applicationUrl": "https://localhost:3978", | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
} | ||
}, | ||
"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
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>925f02f4-663a-41f1-8293-f00a8b45ee29</ProjectGuid> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectCapability Include="ProjectConfigurationsDeclaredDimensions" /> | ||
</ItemGroup> | ||
</Project> |
107 changes: 107 additions & 0 deletions
107
samples/app-anonymous-users/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,107 @@ | ||
{ | ||
"id": "${{AAD_APP_OBJECT_ID}}", | ||
"appId": "${{AAD_APP_CLIENT_ID}}", | ||
"name": "app-anonymous-users-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" | ||
} | ||
] | ||
} | ||
], | ||
"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://${{BOT_DOMAIN}}/auth-end.html", | ||
"type": "Web" | ||
}, | ||
{ | ||
"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
27 changes: 27 additions & 0 deletions
27
samples/app-anonymous-users/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,27 @@ | ||
# 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= | ||
APP_NAME_SUFFIX= | ||
|
||
# Generated during provision, you can also add your own variables. | ||
BOT_ID= | ||
TEAMS_APP_ID= | ||
TEAMSFX_M365_USER_NAME= | ||
|
||
BOT_ENDPOINT= | ||
BOT_DOMAIN= | ||
|
||
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= |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be detailed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated Below Comments -
This sample app enables anonymous user support in Microsoft Teams meeting apps using Azure AD, Bot Framework, and tunneling setup, allowing guest users to interact seamlessly through features like meeting tabs and stage views.