Compare commits
2 Commits
7830c5f21d
...
a7b8c15e3a
Author | SHA1 | Date | |
---|---|---|---|
a7b8c15e3a | |||
135570d384 |
4848
package-lock.json
generated
4848
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
28
package.json
28
package.json
@ -10,17 +10,17 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "^19.0.4",
|
"@angular/animations": "^19.0.5",
|
||||||
"@angular/cdk": "~19.0.3",
|
"@angular/cdk": "~19.0.4",
|
||||||
"@angular/cdk-experimental": "^19.0.3",
|
"@angular/cdk-experimental": "^19.0.4",
|
||||||
"@angular/common": "^19.0.4",
|
"@angular/common": "^19.0.5",
|
||||||
"@angular/compiler": "^19.0.4",
|
"@angular/compiler": "^19.0.5",
|
||||||
"@angular/core": "^19.0.4",
|
"@angular/core": "^19.0.5",
|
||||||
"@angular/forms": "^19.0.4",
|
"@angular/forms": "^19.0.5",
|
||||||
"@angular/material": "~19.0.3",
|
"@angular/material": "~19.0.4",
|
||||||
"@angular/platform-browser": "^19.0.4",
|
"@angular/platform-browser": "^19.0.5",
|
||||||
"@angular/platform-browser-dynamic": "^19.0.4",
|
"@angular/platform-browser-dynamic": "^19.0.5",
|
||||||
"@angular/router": "^19.0.4",
|
"@angular/router": "^19.0.5",
|
||||||
"@progress/kendo-date-math": "^1.5.14",
|
"@progress/kendo-date-math": "^1.5.14",
|
||||||
"ngx-toastr": "^19.0.0",
|
"ngx-toastr": "^19.0.0",
|
||||||
"rxjs": "~7.8.1",
|
"rxjs": "~7.8.1",
|
||||||
@ -28,9 +28,9 @@
|
|||||||
"zone.js": "^0.15.0"
|
"zone.js": "^0.15.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "^19.0.5",
|
"@angular-devkit/build-angular": "^19.0.6",
|
||||||
"@angular/cli": "^19.0.5",
|
"@angular/cli": "^19.0.6",
|
||||||
"@angular/compiler-cli": "^19.0.4",
|
"@angular/compiler-cli": "^19.0.5",
|
||||||
"@types/jasmine": "~5.1.5",
|
"@types/jasmine": "~5.1.5",
|
||||||
"jasmine-core": "~5.5.0",
|
"jasmine-core": "~5.5.0",
|
||||||
"karma": "~6.4.4",
|
"karma": "~6.4.4",
|
||||||
|
@ -5,6 +5,8 @@ import {catchError, map, Observable, of} from "rxjs";
|
|||||||
import {AuthRoles} from "@model/authRoles";
|
import {AuthRoles} from "@model/authRoles";
|
||||||
import {AvailableOAuthProvidersResponse} from "@api/v1/availableProvidersResponse";
|
import {AvailableOAuthProvidersResponse} from "@api/v1/availableProvidersResponse";
|
||||||
import {OAuthProvider} from "@model/oAuthProvider";
|
import {OAuthProvider} from "@model/oAuthProvider";
|
||||||
|
import {TwoFactorAuthentication} from "@model/twoFactorAuthentication";
|
||||||
|
import {TwoFactorAuthRequest} from "@api/v1/twoFactorAuthRequest";
|
||||||
|
|
||||||
export interface OAuthProviderData extends AvailableOAuthProvidersResponse {
|
export interface OAuthProviderData extends AvailableOAuthProvidersResponse {
|
||||||
icon: string;
|
icon: string;
|
||||||
@ -22,7 +24,17 @@ export default class AuthApiService extends ApiService {
|
|||||||
.setWithCredentials()
|
.setWithCredentials()
|
||||||
.build;
|
.build;
|
||||||
|
|
||||||
return this.post<AuthRoles>(request);
|
return this.post<TwoFactorAuthentication>(request);
|
||||||
|
}
|
||||||
|
|
||||||
|
public twoFactorAuth(data: TwoFactorAuthRequest) {
|
||||||
|
let request = this.createRequestBuilder()
|
||||||
|
.setEndpoint('2FA')
|
||||||
|
.setData(data)
|
||||||
|
.setWithCredentials()
|
||||||
|
.build;
|
||||||
|
|
||||||
|
return this.post<boolean>(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
public reLogin() {
|
public reLogin() {
|
||||||
|
Reference in New Issue
Block a user