Interface IOAuthRestClient
Handles authorization functionality on top of IRestClient
Inherited Members
Namespace: BlazorFocused
Assembly: BlazorFocused.Client.dll
Syntax
public interface IOAuthRestClient : IRestClient
Methods
| Improve this Doc View SourceAddAuthorization(String, String)
Add authorization token for subsequent requests
Declaration
void AddAuthorization(string scheme, string token)
Parameters
Type | Name | Description |
---|---|---|
System.String | scheme | Authentication scheme |
System.String | token | Authentication token |
Remarks
This authorization information will be appended to all subsequent HTTP requests. To remove this information, you must make another request with AddAuthorization(String, String) or use ClearAuthorization()
ClearAuthorization()
Clear previously stored authorization information.
Declaration
void ClearAuthorization()
HasAuthorization()
Determines if authorization information is stored
Declaration
bool HasAuthorization()
Returns
Type | Description |
---|---|
System.Boolean | "True" if information is stored and "False" if not found |
RetrieveAuthorization()
Returns current authorization information
Declaration
string RetrieveAuthorization()
Returns
Type | Description |
---|---|
System.String | Current authorization infomration. Will return empty string if nothing is stored. |
Remarks
Example output: "Bearer your-token"