Alterando grant type para string
This commit is contained in:
parent
402374f767
commit
05b2091b0a
1 changed files with 2 additions and 6 deletions
|
@ -15,7 +15,7 @@ export interface LhispOauthClientConstructorParams {
|
||||||
authHeaderName?: string;
|
authHeaderName?: string;
|
||||||
tokenHeaderName?: string;
|
tokenHeaderName?: string;
|
||||||
headers?: Headers;
|
headers?: Headers;
|
||||||
grantType?: GrantType;
|
grantType?: string;
|
||||||
authContentType?: ContentType;
|
authContentType?: ContentType;
|
||||||
sendAuthCredentialsOnRequestBody?: boolean;
|
sendAuthCredentialsOnRequestBody?: boolean;
|
||||||
debug?: boolean;
|
debug?: boolean;
|
||||||
|
@ -34,16 +34,12 @@ export interface AccessToken {
|
||||||
created_at?: number;
|
created_at?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum GrantType {
|
|
||||||
CLIENT_CREDENTIALS='client_credentials',
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum ContentType {
|
export enum ContentType {
|
||||||
APPLICATION_JSON='application/json',
|
APPLICATION_JSON='application/json',
|
||||||
APPLICATION_X_WWW_FORM_URLENCODED='application/x-www-form-urlencoded',
|
APPLICATION_X_WWW_FORM_URLENCODED='application/x-www-form-urlencoded',
|
||||||
}
|
}
|
||||||
|
|
||||||
export const defaultGrantType = GrantType.CLIENT_CREDENTIALS;
|
export const defaultGrantType = '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';
|
export const defaultTokenHeaderName = 'Authorization';
|
Loading…
Add table
Add a link
Reference in a new issue