Table of Contents

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 IServerUrls
urlOrPath string

Returns

string

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 IServerUrls
path string

Returns

string

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

Returns

string