public static string GetDelegationServiceUrl(string realm) { JsonMetadataDocument document = GetMetadataDocument(realm); JsonEndpoint delegationEndpoint = document.endpoints.SingleOrDefault(e => e.protocol == DelegationIssuance); if (null != delegationEndpoint) { return(delegationEndpoint.location); } throw new Exception("Metadata document does not contain Delegation Service endpoint Url"); }
internal static string GetDelegationServiceUrl(string realm) { JsonMetadataDocument document = GetMetadataDocument(realm); JsonEndpoint delegationEndpoint = GetEndpoint(document.endpoints, ACSMetadatProtocol.DelegationIssuance).ToArray()[0]; if (null != delegationEndpoint) { return(delegationEndpoint.location); } throw new Exception("Metadata document does not contain Delegation Service endpoint Url"); }
public static string GetStsUrl(string acsMetadataEndpointUrlWithRealm) { JsonMetadataDocument document = GetMetadataDocument(acsMetadataEndpointUrlWithRealm); JsonEndpoint s2sEndpoint = document.endpoints.SingleOrDefault(e => e.protocol == S2SProtocol); if (null != s2sEndpoint) { return(s2sEndpoint.location); } throw new Exception("Metadata document does not contain STS endpoint url"); }
internal static string GetStsUrl(string realm) { JsonMetadataDocument document = GetMetadataDocument(realm); JsonEndpoint s2sEndpoint = GetEndpoint(document.endpoints, ACSMetadatProtocol.S2SProtocol).ToArray()[0]; if (null != s2sEndpoint) { return(s2sEndpoint.location); } throw new Exception("Metadata document does not contain STS endpoint url"); }
private static string GetStsUrl(string realm) { JsonMetadataDocument document = GetMetadataDocument(realm); JsonEndpoint s2SEndpoint = document.endpoints.SingleOrDefault(e => e.protocol == S2SProtocol); if (null != s2SEndpoint) { return(s2SEndpoint.location); } else { throw new Exception("Metadata document does not contain STS endpoint url"); } }