Public/Get-SfHsdpConfig.ps1

<#
    .SYNOPSIS
    Get the Salesforce org configured HSDP IAM configuration

    .DESCRIPTION
    Used to get access to the IAM endpoints accessing IAM configured for the salesforce org.

    .INPUTS
    None.

    .OUTPUTS
    CustomPSObject with the properties:
        - phecc__Key__c
        - phecc__Secret__c
        - phecc__Access_Token_URL__c

    .EXAMPLE
    PS> Get-SfHsdpConfig

    .LINK
    Set-FileConfig

    .NOTES
    Assumes config is initialized for org access.
#>

function Get-SfHsdpConfig {
    Invoke-SfQuery "SELECT phecc__Key__c,phecc__Secret__c,phecc__Access_Token_URL__c FROM phecc__HSDPAuthMetadata__mdt"
 }