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;
|
||||
tokenHeaderName?: string;
|
||||
headers?: Headers;
|
||||
grantType?: GrantType;
|
||||
grantType?: string;
|
||||
authContentType?: ContentType;
|
||||
sendAuthCredentialsOnRequestBody?: boolean;
|
||||
debug?: boolean;
|
||||
|
@ -34,16 +34,12 @@ export interface AccessToken {
|
|||
created_at?: number;
|
||||
}
|
||||
|
||||
export enum GrantType {
|
||||
CLIENT_CREDENTIALS='client_credentials',
|
||||
}
|
||||
|
||||
export enum ContentType {
|
||||
APPLICATION_JSON='application/json',
|
||||
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 defaultAuthHeaderName = 'Authorization';
|
||||
export const defaultTokenHeaderName = 'Authorization';
|
Loading…
Add table
Add a link
Reference in a new issue