Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
173 changes: 0 additions & 173 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/app/login/login-home/login-home.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function getRedirectUrl() {
describe('getRedirectUrl()', () => {
it('should add redirectUrl to Google login url', () => {
expect(component.getRedirectUrl('google')).toEqual(
`${contextPath}/api/google-login?redirectUrl=${redirectUrl}`
`${contextPath}/oauth2/authorization/google?redirectUrl=${redirectUrl}`
);
});
});
Expand Down
4 changes: 2 additions & 2 deletions src/app/login/login-home/login-home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ export class LoginHomeComponent implements OnInit {
getRedirectUrl(social: string): string {
let redirectUrl = '';
if (social === 'google') {
redirectUrl = `${this.configService.getContextPath()}/api/google-login?redirectUrl=${this.userService.getRedirectUrl()}`;
redirectUrl = `/oauth2/authorization/google?redirectUrl=${this.userService.getRedirectUrl()}`;
} else if (social === 'microsoft') {
redirectUrl = `/api/microsoft-login?redirectUrl=/`;
redirectUrl = `/oauth2/authorization/microsoft?redirectUrl=${this.userService.getRedirectUrl()}`;
} else {
redirectUrl = this.userService.getRedirectUrl();
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/register/abstract-register-user.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export abstract class AbstractRegisterUserComponent implements OnInit {
}

protected microsoftSignIn(): void {
window.location.href = `/api/microsoft-login?redirectUrl=${this.joinFormPath}`;
window.location.href = `/oauth2/authorization/microsoft?redirectUrl=${this.joinFormPath}`;
}

protected abstract getFormParams(): any;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ export class RegisterGoogleUserAlreadyExistsComponent {
constructor(private configService: ConfigService) {}

public socialSignIn(socialPlatform: string) {
window.location.href = `${this.configService.getContextPath()}/api/google-login`;
window.location.href = `${this.configService.getContextPath()}/oauth2/authorization/google`;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ import { MatButton } from '@angular/material/button';
})
export class RegisterMicrosoftUserAlreadyExistsComponent {
protected login(): void {
window.location.href = `/api/microsoft-login?redirectUrl=/`;
window.location.href = `/oauth2/authorization/microsoft`;
}
}
4 changes: 2 additions & 2 deletions src/app/register/register-user-complete.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { ConfigService } from '../services/config.service';

@Directive()
export abstract class RegisterUserCompleteComponent implements OnInit {
protected googleLogInURL = `${this.configService.getContextPath()}/api/google-login`;
protected microsoftLogInURL = `${this.configService.getContextPath()}/api/microsoft-login?redirectUrl=/`;
protected googleLogInURL = `${this.configService.getContextPath()}/oauth2/authorization/google`;
protected microsoftLogInURL = `${this.configService.getContextPath()}/oauth2/authorization/microsoft`;
protected socialAccount: boolean;
protected isUsingGoogleId: boolean;
protected isUsingMicrosoftId: boolean;
Expand Down
Loading