Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/auth : NbOAuth2AuthStrategy implementing basic authentication scheme against token endpoints #582

Merged
merged 8 commits into from
Jul 30, 2018
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,18 @@ export enum NbOAuth2GrantType {
REFRESH_TOKEN = 'refresh_token',
}

export enum NbOAuth2ClientAuthMethod {
NONE = 'none',
BASIC = 'basic',
REQUEST_BODY = 'request-body',
}

export class NbOAuth2AuthStrategyOptions {
name: string;
baseEndpoint?: string = '';
clientId: string = '';
clientSecret: string = '';
clientSecret?: string = '';
clientAuthMethod?: string = NbOAuth2ClientAuthMethod.NONE;
redirect?: { success?: string; failure?: string } = {
success: '/',
failure: null,
Expand Down
Loading