Definindo valor padrao do Nome do Cabeçalho de Autenticacao nas Requests
This commit is contained in:
parent
53c3fbffe6
commit
241726ed2f
1 changed files with 3 additions and 1 deletions
|
@ -13,6 +13,7 @@ export interface LhispOauthClientConstructorParams {
|
||||||
senhaCertificado?: string;
|
senhaCertificado?: string;
|
||||||
authScope?: string;
|
authScope?: string;
|
||||||
authHeaderName?: string;
|
authHeaderName?: string;
|
||||||
|
tokenHeaderName?: string;
|
||||||
headers?: Headers;
|
headers?: Headers;
|
||||||
grantType?: GrantType;
|
grantType?: GrantType;
|
||||||
authContentType?: ContentType;
|
authContentType?: ContentType;
|
||||||
|
@ -44,3 +45,4 @@ export enum ContentType {
|
||||||
export const defaultGrantType = GrantType.CLIENT_CREDENTIALS;
|
export const defaultGrantType = GrantType.CLIENT_CREDENTIALS;
|
||||||
export const defaultAuthContentType = ContentType.APPLICATION_JSON;
|
export const defaultAuthContentType = ContentType.APPLICATION_JSON;
|
||||||
export const defaultAuthHeaderName = 'Authorization';
|
export const defaultAuthHeaderName = 'Authorization';
|
||||||
|
export const defaultTokenHeaderName = 'Authorization';
|
Loading…
Add table
Add a link
Reference in a new issue