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
using Microsoft.AspNetCore.Mvc; | |
using Pulumi.Automation; | |
using System.Reflection; | |
using Resources = Pulumi.AzureNative.Resources; | |
using Storage = Pulumi.AzureNative.Storage; | |
namespace PulumiOverHttpContainer.Controllers | |
{ | |
public class CInlineProgramArgs : InlineProgramArgs | |
{ |
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
using Microsoft.AspNetCore.Mvc; | |
using Pulumi.Automation; | |
using System.Reflection; | |
using Resources = Pulumi.AzureNative.Resources; | |
using Storage = Pulumi.AzureNative.Storage; | |
namespace PulumiOverHttpContainer.Controllers | |
{ | |
public class CInlineProgramArgs : InlineProgramArgs | |
{ |
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
paths: | |
/v1.0/groups/{id}/members: | |
get: | |
responses: | |
default: | |
description: default | |
schema: {} | |
summary: group | |
description: member | |
operationId: groupmembers |
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
# @name getclientsidewebparts | |
GET https://sktechnologies.sharepoint.com/_api/web/getclientsidewebparts HTTP/1.1 | |
Content-Type: application/json | |
Accept: application/json | |
Authorization: {{$aadToken sktechnologiesltd.co.uk}} | |
### | |
# @name get user | |
GET https://graph.microsoft.com/v1.0/users/kshsbala@sktechnologies.onmicrosoft.com/ HTTP/1.1 |
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
var signInUserId = ClaimsPrincipal.Current.FindFirst(ClaimTypes.NameIdentifier).Value; | |
var userObjectId = ClaimsPrincipal.Current.FindFirst("http://schemas.microsoft.com/identity/claims/objectidentifier").Value; | |
string TenantIdClaimType = "http://schemas.microsoft.com/identity/claims/tenantid"; | |
string tenantId = ClaimsPrincipal.Current.FindFirst(TenantIdClaimType).Value; | |
string upn = HttpContext.Current.User.Identity.Name; | |
Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext ac = new Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext(string.Format("https://login.windows.net/{0}", tenantId)); | |
ClientCredential cc = new ClientCredential(SettingsHelper.ClientId, SettingsHelper.AppKey); | |
AuthenticationResult result = ac.AcquireToken("https://graph.windows.net", cc); |