n4auth/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts

175 lines
4.7 KiB
TypeScript
Raw Permalink Normal View History

2021-07-15 20:10:20 +00:00
import { ResponseMode } from "../utils/Constants";
import { StringDict } from "../utils/MsalTypes";
import { LibraryInfo } from "../config/ClientConfiguration";
export declare class RequestParameterBuilder {
private parameters;
constructor();
/**
* add response_type = code
*/
addResponseTypeCode(): void;
/**
* add response_mode. defaults to query.
* @param responseMode
*/
addResponseMode(responseMode?: ResponseMode): void;
/**
* add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios
* @param scopeSet
* @param addOidcScopes
*/
addScopes(scopes: string[], addOidcScopes?: boolean): void;
/**
* add clientId
* @param clientId
*/
addClientId(clientId: string): void;
/**
* add redirect_uri
* @param redirectUri
*/
addRedirectUri(redirectUri: string): void;
/**
* add post logout redirectUri
* @param redirectUri
*/
addPostLogoutRedirectUri(redirectUri: string): void;
/**
* add id_token_hint to logout request
* @param idTokenHint
*/
addIdTokenHint(idTokenHint: string): void;
/**
* add domain_hint
* @param domainHint
*/
addDomainHint(domainHint: string): void;
/**
* add login_hint
* @param loginHint
*/
addLoginHint(loginHint: string): void;
/**
* add sid
* @param sid
*/
addSid(sid: string): void;
/**
* add claims
* @param claims
*/
addClaims(claims?: string, clientCapabilities?: Array<string>): void;
/**
* add correlationId
* @param correlationId
*/
addCorrelationId(correlationId: string): void;
/**
* add library info query params
* @param libraryInfo
*/
addLibraryInfo(libraryInfo: LibraryInfo): void;
/**
* add prompt
* @param prompt
*/
addPrompt(prompt: string): void;
/**
* add state
* @param state
*/
addState(state: string): void;
/**
* add nonce
* @param nonce
*/
addNonce(nonce: string): void;
/**
* add code_challenge and code_challenge_method
* - throw if either of them are not passed
* @param codeChallenge
* @param codeChallengeMethod
*/
addCodeChallengeParams(codeChallenge: string, codeChallengeMethod: string): void;
/**
* add the `authorization_code` passed by the user to exchange for a token
* @param code
*/
addAuthorizationCode(code: string): void;
/**
* add the `authorization_code` passed by the user to exchange for a token
* @param code
*/
addDeviceCode(code: string): void;
/**
* add the `refreshToken` passed by the user
* @param refreshToken
*/
addRefreshToken(refreshToken: string): void;
/**
* add the `code_verifier` passed by the user to exchange for a token
* @param codeVerifier
*/
addCodeVerifier(codeVerifier: string): void;
/**
* add client_secret
* @param clientSecret
*/
addClientSecret(clientSecret: string): void;
/**
* add clientAssertion for confidential client flows
* @param clientAssertion
*/
addClientAssertion(clientAssertion: string): void;
/**
* add clientAssertionType for confidential client flows
* @param clientAssertionType
*/
addClientAssertionType(clientAssertionType: string): void;
/**
* add OBO assertion for confidential client flows
* @param clientAssertion
*/
addOboAssertion(oboAssertion: string): void;
/**
* add grant type
* @param grantType
*/
addRequestTokenUse(tokenUse: string): void;
/**
* add grant type
* @param grantType
*/
addGrantType(grantType: string): void;
/**
* add client info
*
*/
addClientInfo(): void;
/**
* add extraQueryParams
* @param eQparams
*/
addExtraQueryParameters(eQparams: StringDict): void;
addClientCapabilitiesToClaims(claims?: string, clientCapabilities?: Array<string>): string;
/**
* adds `username` for Password Grant flow
* @param username
*/
addUsername(username: string): void;
/**
* adds `password` for Password Grant flow
* @param password
*/
addPassword(password: string): void;
/**
* add pop_jwk to query params
* @param cnfString
*/
addPopToken(cnfString: string): void;
/**
* Utility to create a URL from the params map
*/
createQueryString(): string;
}
//# sourceMappingURL=RequestParameterBuilder.d.ts.map