Table of Contents

Class ExtraParametersEncoder

Namespace
Arc4u.OAuth2.TokenProvider.Scenarios
Assembly
Arc4u.OAuth2.AspNetCore.dll

Serializes the open ExtraParameters bag into a single form-url-encoded value so it survives the flat SimpleKeyValueSettings (a string/string dictionary), and decodes it back on the token provider side when building the request to the token endpoint.

public static class ExtraParametersEncoder
Inheritance
ExtraParametersEncoder
Inherited Members

Methods

Decode(string?)

Decodes a fragment produced by Encode(IEnumerable<KeyValuePair<string, string>>) back into its key/value pairs.

public static IEnumerable<KeyValuePair<string, string>> Decode(string? encoded)

Parameters

encoded string

Returns

IEnumerable<KeyValuePair<string, string>>

Encode(IEnumerable<KeyValuePair<string, string>>)

Encodes the parameters as a form-url-encoded fragment, e.g. resource=https%3A%2F%2F...&audience=logto.

public static string Encode(IEnumerable<KeyValuePair<string, string>> parameters)

Parameters

parameters IEnumerable<KeyValuePair<string, string>>

Returns

string