Ejemplo n.º 1
0
        public string GetTokenEndpoint(string tenantId)
        {
            if (!TokenEndpoint.Contains("/common/"))
            {
                throw new InvalidOperationException("Invalid token_endpoint: " + TokenEndpoint);
            }

            return(String.IsNullOrEmpty(tenantId) ? TokenEndpoint : TokenEndpoint.Replace("/common/", String.Format("/{0}/", tenantId)));
        }
 public string GetTokenEndpoint(string tenantId)
 {
     // ADFS URLs may not contain /common/. Replace /common/ with tenantID only if /common/ is present.
     return(String.IsNullOrEmpty(tenantId) ? TokenEndpoint : TokenEndpoint.Replace("/common/", String.Format("/{0}/", tenantId)));
 }