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
private string extractRefreshToken(string jwtPayload){ | |
Map<String, Object> jwtMap = (Map<String, Object>)JSON.deserializeUntyped(jwtPayload); | |
Map<String, Object> requestMap = (Map<String, Object>)jwtMap.get('request'); | |
Map<String, Object> restMap = (Map<String, Object>)requestMap.get('rest'); | |
string refreshToken = (string)restMap.get('refreshToken'); | |
return refreshToken; | |
} | |
private string decodeJwt(String base64url){ | |
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
/* | |
* Copyright (C) 2014 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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 System; | |
using System.Collections.Generic; | |
using System.Data.Services; | |
using Microsoft.Xrm.Client; | |
using Microsoft.Xrm.Client.Configuration; | |
using Microsoft.Xrm.Client.Messages; | |
using Microsoft.Xrm.Sdk; | |
namespace CrmOrganizationServiceContextExtensions | |
{ |
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 System; | |
namespace CrmOrganizationServiceContextExtensions | |
{ | |
public interface ICrmOrganizationServiceContext | |
{ | |
/* | |
* Microsoft.Xrm.Client.Messages.OrganizationServiceContextExtensions | |
*/ | |
Guid AddItemCampaign(Guid campaignId, Guid entityId, string entityName); |