Class ServerUrlExtensions
- Namespace
- Duende.IdentityServer.Extensions
- Assembly
- Duende.IdentityServer.dll
Extension methods for IServerUrls
public static class ServerUrlExtensions
- Inheritance
-
ServerUrlExtensions
- Inherited Members
Methods
GetAbsoluteUrl(IServerUrls, string)
Returns an absolute URL for the URL or path.
public static string GetAbsoluteUrl(this IServerUrls urls, string urlOrPath)
Parameters
urls
IServerUrlsurlOrPath
string
Returns
GetIdentityServerRelativeUrl(IServerUrls, string)
Returns the URL into the server based on the relative path. The path parameter can start with "~/" or "/".
public static string GetIdentityServerRelativeUrl(this IServerUrls urls, string path)
Parameters
urls
IServerUrlspath
string
Returns
GetUnicodeOrigin(IServerUrls)
Returns the origin in unicode, and not in punycode (if we have a unicode hostname)
public static string GetUnicodeOrigin(this IServerUrls urls)
Parameters
urls
IServerUrls