Class FederationOpenIdVerifier
Verifies OpenID tokens over the federation API, GET /_matrix/federation/v1/openid/userinfo, at the address the server name delegates to by /.well-known/matrix/server, else at port 8448.
Inheritance
FederationOpenIdVerifier
Assembly: Uniform.LiveKit.Authorization.dll
public sealed class FederationOpenIdVerifier : IOpenIdVerifier
Constructors
|
Edit this page
View Source
Verifies OpenID tokens over the federation API, GET /_matrix/federation/v1/openid/userinfo, at the address the server name delegates to by /.well-known/matrix/server, else at port 8448.
Declaration
public FederationOpenIdVerifier(HttpClient http)
Parameters
| Type |
Name |
Description |
| HttpClient |
http |
The client of the requests.
|
Methods
|
Edit this page
View Source
Return whether host ends with a port, also after a bracketed IPv6 address.
Declaration
public static bool HasPort(string host)
Parameters
| Type |
Name |
Description |
| string |
host |
|
Returns
|
Edit this page
View Source
Return the federation base URL of serverName: as is with an explicit port; else its m.server delegation, at 8448 without a port; else the name at 8448.
Declaration
public Task<string> ResolveAsync(string serverName, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Ask the token's homeserver who the token is of.
Declaration
public Task<string?> VerifyAsync(OpenIdToken token, CancellationToken cancellationToken)
Parameters
Returns
Implements