Definindo valor padrao do Nome do Cabeçalho de Autenticacao nas Requests

This commit is contained in:
Leandro Costa 2023-01-26 22:21:04 -03:00
parent 53c3fbffe6
commit 241726ed2f

View file

@ -13,6 +13,7 @@ export interface LhispOauthClientConstructorParams {
senhaCertificado?: string;
authScope?: string;
authHeaderName?: string;
tokenHeaderName?: string;
headers?: Headers;
grantType?: GrantType;
authContentType?: ContentType;
@ -43,4 +44,5 @@ export enum ContentType {
export const defaultGrantType = GrantType.CLIENT_CREDENTIALS;
export const defaultAuthContentType = ContentType.APPLICATION_JSON;
export const defaultAuthHeaderName = 'Authorization';
export const defaultAuthHeaderName = 'Authorization';
export const defaultTokenHeaderName = 'Authorization';