DownstreamApiOptionsReadOnlyHttpMethod Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specialization of DownstreamApiOptions where the HttpMethod is not settable beyond it's construction.
public class DownstreamApiOptionsReadOnlyHttpMethod : Microsoft.Identity.Abstractions.DownstreamApiOptions
type DownstreamApiOptionsReadOnlyHttpMethod = class
inherit DownstreamApiOptions
Public Class DownstreamApiOptionsReadOnlyHttpMethod
Inherits DownstreamApiOptions
- Inheritance
-
DownstreamApiOptionsReadOnlyHttpMethod
Remarks
This class is useful to provide a better developer experience on the specialized methods of IDownstreamApi where the HTTP method is provided already by the name of the method, and should not be overridden by the options. You shouldn't need to use it directly.
Constructors
DownstreamApiOptionsReadOnlyHttpMethod(DownstreamApiOptions, String) |
Constructor fro a DownstreamApiOptions and an HTTP method. |
Properties
AcceptHeader |
The HTTP Accept header is used to inform that server about the content type that the client is expecting in the response. (Inherited from DownstreamApiOptions) |
AcquireTokenOptions |
Options related to token acquisition. (Inherited from AuthorizationHeaderProviderOptions) |
BaseUrl |
Base URL for the called downstream web API. For instance |
ContentType |
Content type of the request body. (Inherited from DownstreamApiOptions) |
CustomizeHttpRequestMessage |
Provides an opportunity for the caller app to customize the HttpRequestMessage. For example, to customize the headers. This is called after the message was formed, including the Authorization header, and just before the message is sent. (Inherited from AuthorizationHeaderProviderOptions) |
Deserializer |
Optional de-serializer. Will de-serialize the output from the web API (if any).
When not provided, the following is returned:
|
HttpMethod |
Http method only readable publicly. |
ProtocolScheme |
Name of the protocol scheme used to create the authorization header. By default: "Bearer". (Inherited from AuthorizationHeaderProviderOptions) |
RelativePath |
Path relative to the BaseUrl (for instance "me"). (Inherited from AuthorizationHeaderProviderOptions) |
RequestAppToken |
Describes if the downstream API is called on behalf of the calling service itself
(App token) or on behalf of a user processed by the service (user token).
If |
Scopes |
Scopes required to call the downstream web API. For instance "user.read mail.read". For Microsoft identity, in the case of application tokens (token requested by the app on behalf of itself), there should be only one scope, and it should end in "./default") (Inherited from DownstreamApiOptions) |
Serializer |
Optional serializer. Will serialize the input to the web API (if any). By default, when not provided:
|
Methods
Clone() |
Clone the options |
CloneInternal() |
Clone the options (to be able to override them). |
GetApiUrl() |
Return the downstream web API URL. (Inherited from AuthorizationHeaderProviderOptions) |