diff --git a/frontend/src/app/openapi/.openapi-generator/FILES b/frontend/src/app/openapi/.openapi-generator/FILES index 53519d803..ef2e6ad6e 100644 --- a/frontend/src/app/openapi/.openapi-generator/FILES +++ b/frontend/src/app/openapi/.openapi-generator/FILES @@ -5,7 +5,6 @@ api/events.service.ts api/health.service.ts api/metadata.service.ts api/notices.service.ts -api/oauth.service.ts api/projects-events.service.ts api/projects-models-backups.service.ts api/projects-models-diagrams.service.ts @@ -83,7 +82,7 @@ model/patch-project-user.ts model/patch-project.ts model/patch-t4-c-instance.ts model/patch-tool-model.ts -model/patch-user-role-request.ts +model/patch-user.ts model/path-validation.ts model/payload-response-model-list-t4-c-repository.ts model/payload-response-model-session-connection-information.ts @@ -114,7 +113,6 @@ model/pure-variants-licenses-input.ts model/pure-variants-licenses-output.ts model/rdp-ports-input.ts model/rdp-ports-output.ts -model/refresh-token-request.ts model/resources-input.ts model/resources-output.ts model/response-model.ts diff --git a/frontend/src/app/openapi/api/api.ts b/frontend/src/app/openapi/api/api.ts index 288056feb..7de12560a 100644 --- a/frontend/src/app/openapi/api/api.ts +++ b/frontend/src/app/openapi/api/api.ts @@ -19,8 +19,6 @@ export * from './metadata.service'; import { MetadataService } from './metadata.service'; export * from './notices.service'; import { NoticesService } from './notices.service'; -export * from './oauth.service'; -import { OauthService } from './oauth.service'; export * from './projects.service'; import { ProjectsService } from './projects.service'; export * from './projects-events.service'; @@ -55,4 +53,4 @@ export * from './users-token.service'; import { UsersTokenService } from './users-token.service'; export * from './users-workspaces.service'; import { UsersWorkspacesService } from './users-workspaces.service'; -export const APIS = [DefaultService, EventsService, HealthService, MetadataService, NoticesService, OauthService, ProjectsService, ProjectsEventsService, ProjectsModelsService, ProjectsModelsBackupsService, ProjectsModelsDiagramsService, ProjectsModelsGitService, ProjectsModelsModelComplexityBadgeService, ProjectsModelsRestrictionsService, ProjectsModelsT4CService, SessionsService, SettingsModelsourcesGitService, SettingsModelsourcesT4CService, ToolsService, UsersService, UsersSessionsService, UsersTokenService, UsersWorkspacesService]; +export const APIS = [DefaultService, EventsService, HealthService, MetadataService, NoticesService, ProjectsService, ProjectsEventsService, ProjectsModelsService, ProjectsModelsBackupsService, ProjectsModelsDiagramsService, ProjectsModelsGitService, ProjectsModelsModelComplexityBadgeService, ProjectsModelsRestrictionsService, ProjectsModelsT4CService, SessionsService, SettingsModelsourcesGitService, SettingsModelsourcesT4CService, ToolsService, UsersService, UsersSessionsService, UsersTokenService, UsersWorkspacesService]; diff --git a/frontend/src/app/openapi/api/default.service.ts b/frontend/src/app/openapi/api/default.service.ts index 71dd268df..b6094b8cb 100644 --- a/frontend/src/app/openapi/api/default.service.ts +++ b/frontend/src/app/openapi/api/default.service.ts @@ -28,6 +28,10 @@ import { HTTPValidationError } from '../model/http-validation-error'; import { PureVariantsLicensesInput } from '../model/pure-variants-licenses-input'; // @ts-ignore import { PureVariantsLicensesOutput } from '../model/pure-variants-licenses-output'; +// @ts-ignore +import { Role } from '../model/role'; +// @ts-ignore +import { TokenRequest } from '../model/token-request'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -113,6 +117,80 @@ export class DefaultService { return httpParams; } + /** + * Create The Identity Token + * @param tokenRequest + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createTheIdentityToken(tokenRequest: TokenRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public createTheIdentityToken(tokenRequest: TokenRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public createTheIdentityToken(tokenRequest: TokenRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public createTheIdentityToken(tokenRequest: TokenRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (tokenRequest === null || tokenRequest === undefined) { + throw new Error('Required parameter tokenRequest was null or undefined when calling createTheIdentityToken.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/v1/authentication/tokens`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: tokenRequest, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + /** * Delete License Key File * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -132,12 +210,6 @@ export class DefaultService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -205,12 +277,6 @@ export class DefaultService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -338,12 +404,6 @@ export class DefaultService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -392,6 +452,187 @@ export class DefaultService { ); } + /** + * Get The Authorization Url For The Oauth Server + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getTheAuthorizationURLForTheOAuthServer(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<{ [key: string]: string | null; }>; + public getTheAuthorizationURLForTheOAuthServer(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getTheAuthorizationURLForTheOAuthServer(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getTheAuthorizationURLForTheOAuthServer(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/v1/authentication`; + return this.httpClient.request<{ [key: string]: string | null; }>('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Refresh The Identity Token + * @param refreshToken + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public refreshTheIdentityToken(refreshToken?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public refreshTheIdentityToken(refreshToken?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public refreshTheIdentityToken(refreshToken?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public refreshTheIdentityToken(refreshToken?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/v1/authentication/tokens`; + return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Remove The Token (Log Out) + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public removeTheTokenLogOut(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public removeTheTokenLogOut(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public removeTheTokenLogOut(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public removeTheTokenLogOut(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/v1/authentication/tokens`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + /** * Set License * @param pureVariantsLicensesInput @@ -415,12 +656,6 @@ export class DefaultService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -502,12 +737,6 @@ export class DefaultService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -589,12 +818,6 @@ export class DefaultService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -666,4 +889,72 @@ export class DefaultService { ); } + /** + * Validate The Token + * @param scope + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public validateTheToken(scope?: Role, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public validateTheToken(scope?: Role, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public validateTheToken(scope?: Role, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public validateTheToken(scope?: Role, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (scope !== undefined && scope !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + scope, 'scope'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/v1/authentication/tokens`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + } diff --git a/frontend/src/app/openapi/api/events.service.ts b/frontend/src/app/openapi/api/events.service.ts index 874664fdc..8586ba8f7 100644 --- a/frontend/src/app/openapi/api/events.service.ts +++ b/frontend/src/app/openapi/api/events.service.ts @@ -111,12 +111,6 @@ export class EventsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/health.service.ts b/frontend/src/app/openapi/api/health.service.ts index 60a64ea4c..d9c8e51fe 100644 --- a/frontend/src/app/openapi/api/health.service.ts +++ b/frontend/src/app/openapi/api/health.service.ts @@ -175,12 +175,6 @@ export class HealthService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -248,12 +242,6 @@ export class HealthService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/notices.service.ts b/frontend/src/app/openapi/api/notices.service.ts index de2975dfc..9b5d15b6e 100644 --- a/frontend/src/app/openapi/api/notices.service.ts +++ b/frontend/src/app/openapi/api/notices.service.ts @@ -119,12 +119,6 @@ export class NoticesService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -206,12 +200,6 @@ export class NoticesService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/oauth.service.ts b/frontend/src/app/openapi/api/oauth.service.ts deleted file mode 100644 index 96a9b4d0d..000000000 --- a/frontend/src/app/openapi/api/oauth.service.ts +++ /dev/null @@ -1,444 +0,0 @@ -/* - * SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors - * SPDX-License-Identifier: Apache-2.0 - * - * Capella Collaboration - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * Do not edit the class manually. - + To generate a new version, run `make openapi` in the root directory of this repository. - */ - -/* tslint:disable:no-unused-variable member-ordering */ - -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext - } from '@angular/common/http'; -import { CustomHttpParameterCodec } from '../encoder'; -import { Observable } from 'rxjs'; - -// @ts-ignore -import { HTTPValidationError } from '../model/http-validation-error'; -// @ts-ignore -import { RefreshTokenRequest } from '../model/refresh-token-request'; -// @ts-ignore -import { Role } from '../model/role'; -// @ts-ignore -import { TokenRequest } from '../model/token-request'; - -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; - - - -@Injectable({ - providedIn: 'root' -}) -export class OauthService { - - protected basePath = 'http://localhost'; - public defaultHeaders = new HttpHeaders(); - public configuration = new Configuration(); - public encoder: HttpParameterCodec; - - constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { - if (configuration) { - this.configuration = configuration; - } - if (typeof this.configuration.basePath !== 'string') { - const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined; - if (firstBasePath != undefined) { - basePath = firstBasePath; - } - - if (typeof basePath !== 'string') { - basePath = this.basePath; - } - this.configuration.basePath = basePath; - } - this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); - } - - - // @ts-ignore - private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { - if (typeof value === "object" && value instanceof Date === false) { - httpParams = this.addToHttpParamsRecursive(httpParams, value); - } else { - httpParams = this.addToHttpParamsRecursive(httpParams, value, key); - } - return httpParams; - } - - private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { - if (value == null) { - return httpParams; - } - - if (typeof value === "object") { - if (Array.isArray(value)) { - (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); - } else if (value instanceof Date) { - if (key != null) { - httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10)); - } else { - throw Error("key may not be null if value is Date"); - } - } else { - Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( - httpParams, value[k], key != null ? `${key}.${k}` : k)); - } - } else if (key != null) { - httpParams = httpParams.append(key, value); - } else { - throw Error("key may not be null if value is not object or array"); - } - return httpParams; - } - - /** - * Create Access Token - * @param tokenRequest - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public createAccessToken(tokenRequest: TokenRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public createAccessToken(tokenRequest: TokenRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createAccessToken(tokenRequest: TokenRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createAccessToken(tokenRequest: TokenRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (tokenRequest === null || tokenRequest === undefined) { - throw new Error('Required parameter tokenRequest was null or undefined when calling createAccessToken.'); - } - - let localVarHeaders = this.defaultHeaders; - - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; - if (localVarHttpHeaderAcceptSelected === undefined) { - // to determine the Accept header - const httpHeaderAccepts: string[] = [ - 'application/json' - ]; - localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); - } - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - let localVarHttpContext: HttpContext | undefined = options && options.context; - if (localVarHttpContext === undefined) { - localVarHttpContext = new HttpContext(); - } - - let localVarTransferCache: boolean | undefined = options && options.transferCache; - if (localVarTransferCache === undefined) { - localVarTransferCache = true; - } - - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); - } - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/v1/authentication/tokens`; - return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: tokenRequest, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - - /** - * Get Redirect Url For Oauth - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getRedirectURLForOAuth(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getRedirectURLForOAuth(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getRedirectURLForOAuth(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getRedirectURLForOAuth(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - - let localVarHeaders = this.defaultHeaders; - - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; - if (localVarHttpHeaderAcceptSelected === undefined) { - // to determine the Accept header - const httpHeaderAccepts: string[] = [ - 'application/json' - ]; - localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); - } - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - let localVarHttpContext: HttpContext | undefined = options && options.context; - if (localVarHttpContext === undefined) { - localVarHttpContext = new HttpContext(); - } - - let localVarTransferCache: boolean | undefined = options && options.transferCache; - if (localVarTransferCache === undefined) { - localVarTransferCache = true; - } - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/v1/authentication`; - return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - - /** - * Invalidate The Token (Log Out) - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public invalidateTheTokenLogOut(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public invalidateTheTokenLogOut(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public invalidateTheTokenLogOut(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public invalidateTheTokenLogOut(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - - let localVarHeaders = this.defaultHeaders; - - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; - if (localVarHttpHeaderAcceptSelected === undefined) { - // to determine the Accept header - const httpHeaderAccepts: string[] = [ - 'application/json' - ]; - localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); - } - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - let localVarHttpContext: HttpContext | undefined = options && options.context; - if (localVarHttpContext === undefined) { - localVarHttpContext = new HttpContext(); - } - - let localVarTransferCache: boolean | undefined = options && options.transferCache; - if (localVarTransferCache === undefined) { - localVarTransferCache = true; - } - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/v1/authentication/tokens`; - return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - - /** - * Refresh The Access Token - * @param refreshTokenRequest - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public refreshTheAccessToken(refreshTokenRequest: RefreshTokenRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public refreshTheAccessToken(refreshTokenRequest: RefreshTokenRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public refreshTheAccessToken(refreshTokenRequest: RefreshTokenRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public refreshTheAccessToken(refreshTokenRequest: RefreshTokenRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (refreshTokenRequest === null || refreshTokenRequest === undefined) { - throw new Error('Required parameter refreshTokenRequest was null or undefined when calling refreshTheAccessToken.'); - } - - let localVarHeaders = this.defaultHeaders; - - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; - if (localVarHttpHeaderAcceptSelected === undefined) { - // to determine the Accept header - const httpHeaderAccepts: string[] = [ - 'application/json' - ]; - localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); - } - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - let localVarHttpContext: HttpContext | undefined = options && options.context; - if (localVarHttpContext === undefined) { - localVarHttpContext = new HttpContext(); - } - - let localVarTransferCache: boolean | undefined = options && options.transferCache; - if (localVarTransferCache === undefined) { - localVarTransferCache = true; - } - - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); - } - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/v1/authentication/tokens`; - return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: refreshTokenRequest, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - - /** - * Validate The Token - * @param scope - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public validateTheToken(scope?: Role, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public validateTheToken(scope?: Role, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public validateTheToken(scope?: Role, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public validateTheToken(scope?: Role, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - if (scope !== undefined && scope !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - scope, 'scope'); - } - - let localVarHeaders = this.defaultHeaders; - - let localVarCredential: string | undefined; - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; - if (localVarHttpHeaderAcceptSelected === undefined) { - // to determine the Accept header - const httpHeaderAccepts: string[] = [ - 'application/json' - ]; - localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); - } - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - let localVarHttpContext: HttpContext | undefined = options && options.context; - if (localVarHttpContext === undefined) { - localVarHttpContext = new HttpContext(); - } - - let localVarTransferCache: boolean | undefined = options && options.transferCache; - if (localVarTransferCache === undefined) { - localVarTransferCache = true; - } - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/v1/authentication/tokens`; - return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - -} diff --git a/frontend/src/app/openapi/api/projects-events.service.ts b/frontend/src/app/openapi/api/projects-events.service.ts index 1cbd7537d..9d0b8af49 100644 --- a/frontend/src/app/openapi/api/projects-events.service.ts +++ b/frontend/src/app/openapi/api/projects-events.service.ts @@ -129,12 +129,6 @@ export class ProjectsEventsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/projects-models-backups.service.ts b/frontend/src/app/openapi/api/projects-models-backups.service.ts index 81a2f8d05..339346eff 100644 --- a/frontend/src/app/openapi/api/projects-models-backups.service.ts +++ b/frontend/src/app/openapi/api/projects-models-backups.service.ts @@ -133,12 +133,6 @@ export class ProjectsModelsBackupsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -232,12 +226,6 @@ export class ProjectsModelsBackupsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -334,12 +322,6 @@ export class ProjectsModelsBackupsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -424,12 +406,6 @@ export class ProjectsModelsBackupsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -509,12 +485,6 @@ export class ProjectsModelsBackupsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -598,12 +568,6 @@ export class ProjectsModelsBackupsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -687,12 +651,6 @@ export class ProjectsModelsBackupsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -784,12 +742,6 @@ export class ProjectsModelsBackupsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -866,12 +818,6 @@ export class ProjectsModelsBackupsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/projects-models-diagrams.service.ts b/frontend/src/app/openapi/api/projects-models-diagrams.service.ts index b95c96566..ac18cd4c8 100644 --- a/frontend/src/app/openapi/api/projects-models-diagrams.service.ts +++ b/frontend/src/app/openapi/api/projects-models-diagrams.service.ts @@ -125,12 +125,6 @@ export class ProjectsModelsDiagramsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -196,12 +190,6 @@ export class ProjectsModelsDiagramsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/projects-models-git.service.ts b/frontend/src/app/openapi/api/projects-models-git.service.ts index cb2a807cd..9a74a5beb 100644 --- a/frontend/src/app/openapi/api/projects-models-git.service.ts +++ b/frontend/src/app/openapi/api/projects-models-git.service.ts @@ -131,12 +131,6 @@ export class ProjectsModelsGitService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -226,12 +220,6 @@ export class ProjectsModelsGitService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -311,12 +299,6 @@ export class ProjectsModelsGitService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -392,12 +374,6 @@ export class ProjectsModelsGitService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -473,12 +449,6 @@ export class ProjectsModelsGitService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -562,12 +532,6 @@ export class ProjectsModelsGitService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -661,12 +625,6 @@ export class ProjectsModelsGitService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/projects-models-model-complexity-badge.service.ts b/frontend/src/app/openapi/api/projects-models-model-complexity-badge.service.ts index a6d4d4545..e5d45f88b 100644 --- a/frontend/src/app/openapi/api/projects-models-model-complexity-badge.service.ts +++ b/frontend/src/app/openapi/api/projects-models-model-complexity-badge.service.ts @@ -119,12 +119,6 @@ export class ProjectsModelsModelComplexityBadgeService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/projects-models-restrictions.service.ts b/frontend/src/app/openapi/api/projects-models-restrictions.service.ts index 562293777..8fe21b176 100644 --- a/frontend/src/app/openapi/api/projects-models-restrictions.service.ts +++ b/frontend/src/app/openapi/api/projects-models-restrictions.service.ts @@ -121,12 +121,6 @@ export class ProjectsModelsRestrictionsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -206,12 +200,6 @@ export class ProjectsModelsRestrictionsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/projects-models-t4-c.service.ts b/frontend/src/app/openapi/api/projects-models-t4-c.service.ts index 4afdab418..5a6dc8a2d 100644 --- a/frontend/src/app/openapi/api/projects-models-t4-c.service.ts +++ b/frontend/src/app/openapi/api/projects-models-t4-c.service.ts @@ -127,12 +127,6 @@ export class ProjectsModelsT4CService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -222,12 +216,6 @@ export class ProjectsModelsT4CService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -311,12 +299,6 @@ export class ProjectsModelsT4CService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -406,12 +388,6 @@ export class ProjectsModelsT4CService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -487,12 +463,6 @@ export class ProjectsModelsT4CService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/projects-models.service.ts b/frontend/src/app/openapi/api/projects-models.service.ts index 0efcf2587..8da3503a2 100644 --- a/frontend/src/app/openapi/api/projects-models.service.ts +++ b/frontend/src/app/openapi/api/projects-models.service.ts @@ -155,12 +155,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -250,12 +244,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -341,12 +329,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -432,12 +414,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -531,12 +507,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -626,12 +596,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -721,12 +685,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -813,12 +771,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -899,12 +851,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -980,12 +926,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1061,12 +1001,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1150,12 +1084,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1245,12 +1173,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1316,12 +1238,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1401,12 +1317,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1482,12 +1392,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1571,12 +1475,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1652,12 +1550,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1733,12 +1625,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1814,12 +1700,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1881,12 +1761,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1958,12 +1832,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -2043,12 +1911,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -2132,12 +1994,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -2221,12 +2077,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -2318,12 +2168,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -2400,12 +2244,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -2481,12 +2319,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -2562,12 +2394,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -2651,12 +2477,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -2746,12 +2566,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -2827,12 +2641,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -2912,12 +2720,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -3007,12 +2809,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -3106,12 +2902,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -3201,12 +2991,6 @@ export class ProjectsModelsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/projects.service.ts b/frontend/src/app/openapi/api/projects.service.ts index be7ade9f3..73b986089 100644 --- a/frontend/src/app/openapi/api/projects.service.ts +++ b/frontend/src/app/openapi/api/projects.service.ts @@ -133,12 +133,6 @@ export class ProjectsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -220,12 +214,6 @@ export class ProjectsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -307,12 +295,6 @@ export class ProjectsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -384,12 +366,6 @@ export class ProjectsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -461,12 +437,6 @@ export class ProjectsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -538,12 +508,6 @@ export class ProjectsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -618,12 +582,6 @@ export class ProjectsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -696,12 +654,6 @@ export class ProjectsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -781,12 +733,6 @@ export class ProjectsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -872,12 +818,6 @@ export class ProjectsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -967,12 +907,6 @@ export class ProjectsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/sessions.service.ts b/frontend/src/app/openapi/api/sessions.service.ts index 54aaed68f..214fd2a43 100644 --- a/frontend/src/app/openapi/api/sessions.service.ts +++ b/frontend/src/app/openapi/api/sessions.service.ts @@ -150,12 +150,6 @@ export class SessionsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -228,12 +222,6 @@ export class SessionsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -301,12 +289,6 @@ export class SessionsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -378,12 +360,6 @@ export class SessionsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -455,12 +431,6 @@ export class SessionsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -542,12 +512,6 @@ export class SessionsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -620,12 +584,6 @@ export class SessionsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -711,12 +669,6 @@ export class SessionsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -802,12 +754,6 @@ export class SessionsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/settings-modelsources-git.service.ts b/frontend/src/app/openapi/api/settings-modelsources-git.service.ts index 9137d0584..4e9c25a86 100644 --- a/frontend/src/app/openapi/api/settings-modelsources-git.service.ts +++ b/frontend/src/app/openapi/api/settings-modelsources-git.service.ts @@ -125,12 +125,6 @@ export class SettingsModelsourcesGitService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -212,12 +206,6 @@ export class SettingsModelsourcesGitService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -293,12 +281,6 @@ export class SettingsModelsourcesGitService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -380,12 +362,6 @@ export class SettingsModelsourcesGitService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -457,12 +433,6 @@ export class SettingsModelsourcesGitService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -540,12 +510,6 @@ export class SettingsModelsourcesGitService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -617,12 +581,6 @@ export class SettingsModelsourcesGitService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/settings-modelsources-t4-c.service.ts b/frontend/src/app/openapi/api/settings-modelsources-t4-c.service.ts index 98a18d74c..ad06b5d7f 100644 --- a/frontend/src/app/openapi/api/settings-modelsources-t4-c.service.ts +++ b/frontend/src/app/openapi/api/settings-modelsources-t4-c.service.ts @@ -131,12 +131,6 @@ export class SettingsModelsourcesT4CService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -222,12 +216,6 @@ export class SettingsModelsourcesT4CService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -313,12 +301,6 @@ export class SettingsModelsourcesT4CService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -394,12 +376,6 @@ export class SettingsModelsourcesT4CService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -481,12 +457,6 @@ export class SettingsModelsourcesT4CService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -558,12 +528,6 @@ export class SettingsModelsourcesT4CService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -631,12 +595,6 @@ export class SettingsModelsourcesT4CService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -708,12 +666,6 @@ export class SettingsModelsourcesT4CService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -789,12 +741,6 @@ export class SettingsModelsourcesT4CService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -870,12 +816,6 @@ export class SettingsModelsourcesT4CService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -951,12 +891,6 @@ export class SettingsModelsourcesT4CService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/tools.service.ts b/frontend/src/app/openapi/api/tools.service.ts index f18e6c687..40711b7bd 100644 --- a/frontend/src/app/openapi/api/tools.service.ts +++ b/frontend/src/app/openapi/api/tools.service.ts @@ -136,12 +136,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -227,12 +221,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -318,12 +306,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -405,12 +387,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -486,12 +462,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -567,12 +537,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -640,12 +604,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -717,12 +675,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -794,12 +746,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -871,12 +817,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -952,12 +892,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1029,12 +963,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1110,12 +1038,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1187,12 +1109,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1260,12 +1176,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1333,12 +1243,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1414,12 +1318,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1509,12 +1407,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1604,12 +1496,6 @@ export class ToolsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/users-sessions.service.ts b/frontend/src/app/openapi/api/users-sessions.service.ts index bb5050bad..3d97ee293 100644 --- a/frontend/src/app/openapi/api/users-sessions.service.ts +++ b/frontend/src/app/openapi/api/users-sessions.service.ts @@ -117,12 +117,6 @@ export class UsersSessionsService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/users-token.service.ts b/frontend/src/app/openapi/api/users-token.service.ts index 02f3bd6cb..8afe09772 100644 --- a/frontend/src/app/openapi/api/users-token.service.ts +++ b/frontend/src/app/openapi/api/users-token.service.ts @@ -121,12 +121,6 @@ export class UsersTokenService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -208,12 +202,6 @@ export class UsersTokenService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -281,12 +269,6 @@ export class UsersTokenService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/users-workspaces.service.ts b/frontend/src/app/openapi/api/users-workspaces.service.ts index 07c588936..d1c2f2942 100644 --- a/frontend/src/app/openapi/api/users-workspaces.service.ts +++ b/frontend/src/app/openapi/api/users-workspaces.service.ts @@ -121,12 +121,6 @@ export class UsersWorkspacesService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -198,12 +192,6 @@ export class UsersWorkspacesService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header diff --git a/frontend/src/app/openapi/api/users.service.ts b/frontend/src/app/openapi/api/users.service.ts index 6f32b3f63..9495cfdf0 100644 --- a/frontend/src/app/openapi/api/users.service.ts +++ b/frontend/src/app/openapi/api/users.service.ts @@ -23,7 +23,7 @@ import { HTTPValidationError } from '../model/http-validation-error'; // @ts-ignore import { HistoryEvent } from '../model/history-event'; // @ts-ignore -import { PatchUserRoleRequest } from '../model/patch-user-role-request'; +import { PatchUser } from '../model/patch-user'; // @ts-ignore import { PostToken } from '../model/post-token'; // @ts-ignore @@ -135,12 +135,6 @@ export class UsersService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -222,12 +216,6 @@ export class UsersService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -309,12 +297,6 @@ export class UsersService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -386,12 +368,6 @@ export class UsersService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -467,12 +443,6 @@ export class UsersService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -540,12 +510,6 @@ export class UsersService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -617,12 +581,6 @@ export class UsersService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -690,12 +648,6 @@ export class UsersService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -767,12 +719,6 @@ export class UsersService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -844,12 +790,6 @@ export class UsersService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -921,12 +861,6 @@ export class UsersService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -994,12 +928,6 @@ export class UsersService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1071,12 +999,6 @@ export class UsersService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1126,21 +1048,21 @@ export class UsersService { } /** - * Update Role Of User + * Update User * @param userId - * @param patchUserRoleRequest + * @param patchUser * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateRoleOfUser(userId: number, patchUserRoleRequest: PatchUserRoleRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public updateRoleOfUser(userId: number, patchUserRoleRequest: PatchUserRoleRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateRoleOfUser(userId: number, patchUserRoleRequest: PatchUserRoleRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateRoleOfUser(userId: number, patchUserRoleRequest: PatchUserRoleRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public updateUser(userId: number, patchUser: PatchUser, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public updateUser(userId: number, patchUser: PatchUser, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public updateUser(userId: number, patchUser: PatchUser, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public updateUser(userId: number, patchUser: PatchUser, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (userId === null || userId === undefined) { - throw new Error('Required parameter userId was null or undefined when calling updateRoleOfUser.'); + throw new Error('Required parameter userId was null or undefined when calling updateUser.'); } - if (patchUserRoleRequest === null || patchUserRoleRequest === undefined) { - throw new Error('Required parameter patchUserRoleRequest was null or undefined when calling updateRoleOfUser.'); + if (patchUser === null || patchUser === undefined) { + throw new Error('Required parameter patchUser was null or undefined when calling updateUser.'); } let localVarHeaders = this.defaultHeaders; @@ -1152,12 +1074,6 @@ export class UsersService { localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); } - // authentication (JWTBearer) required - localVarCredential = this.configuration.lookupCredential('JWTBearer'); - if (localVarCredential) { - localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); - } - let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; if (localVarHttpHeaderAcceptSelected === undefined) { // to determine the Accept header @@ -1201,11 +1117,11 @@ export class UsersService { } } - let localVarPath = `/api/v1/users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}/roles`; + let localVarPath = `/api/v1/users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`; return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, { context: localVarHttpContext, - body: patchUserRoleRequest, + body: patchUser, responseType: responseType_, withCredentials: this.configuration.withCredentials, headers: localVarHeaders, diff --git a/frontend/src/app/openapi/configuration.ts b/frontend/src/app/openapi/configuration.ts index 8079b4613..20b80128f 100644 --- a/frontend/src/app/openapi/configuration.ts +++ b/frontend/src/app/openapi/configuration.ts @@ -106,15 +106,6 @@ export class Configuration { : undefined; }; } - - // init default JWTBearer credential - if (!this.credentials['JWTBearer']) { - this.credentials['JWTBearer'] = () => { - return typeof this.accessToken === 'function' - ? this.accessToken() - : this.accessToken; - }; - } } /** diff --git a/frontend/src/app/openapi/model/base-user.ts b/frontend/src/app/openapi/model/base-user.ts index b7dcad0cd..e5f16e749 100644 --- a/frontend/src/app/openapi/model/base-user.ts +++ b/frontend/src/app/openapi/model/base-user.ts @@ -15,6 +15,7 @@ import { Role } from './role'; export interface BaseUser { id: number; name: string; + idp_identifier: string; role: Role; } export namespace BaseUser { diff --git a/frontend/src/app/openapi/model/models.ts b/frontend/src/app/openapi/model/models.ts index bddf060d9..098253c3f 100644 --- a/frontend/src/app/openapi/model/models.ts +++ b/frontend/src/app/openapi/model/models.ts @@ -65,7 +65,7 @@ export * from './patch-project'; export * from './patch-project-user'; export * from './patch-t4-c-instance'; export * from './patch-tool-model'; -export * from './patch-user-role-request'; +export * from './patch-user'; export * from './path-validation'; export * from './payload-response-model-list-t4-c-repository'; export * from './payload-response-model-session-connection-information'; @@ -96,7 +96,6 @@ export * from './pure-variants-licenses-input'; export * from './pure-variants-licenses-output'; export * from './rdp-ports-input'; export * from './rdp-ports-output'; -export * from './refresh-token-request'; export * from './resources-input'; export * from './resources-output'; export * from './response-model'; diff --git a/frontend/src/app/openapi/model/refresh-token-request.ts b/frontend/src/app/openapi/model/patch-user.ts similarity index 61% rename from frontend/src/app/openapi/model/refresh-token-request.ts rename to frontend/src/app/openapi/model/patch-user.ts index 7c596d1c0..7a774eb6a 100644 --- a/frontend/src/app/openapi/model/refresh-token-request.ts +++ b/frontend/src/app/openapi/model/patch-user.ts @@ -9,9 +9,17 @@ + To generate a new version, run `make openapi` in the root directory of this repository. */ +import { Role } from './role'; -export interface RefreshTokenRequest { - refresh_token: string; +export interface PatchUser { + name?: string | null; + idp_identifier?: string | null; + email?: string | null; + role?: Role | null; + reason?: string | null; } +export namespace PatchUser { +} + diff --git a/frontend/src/app/openapi/model/post-user.ts b/frontend/src/app/openapi/model/post-user.ts index 6b28083b6..7c7787dfc 100644 --- a/frontend/src/app/openapi/model/post-user.ts +++ b/frontend/src/app/openapi/model/post-user.ts @@ -14,6 +14,8 @@ import { Role } from './role'; export interface PostUser { name: string; + idp_identifier: string; + email?: string | null; role: Role; reason: string; } diff --git a/frontend/src/app/openapi/model/session-connection-information.ts b/frontend/src/app/openapi/model/session-connection-information.ts index 7d1119c3b..c7db275c6 100644 --- a/frontend/src/app/openapi/model/session-connection-information.ts +++ b/frontend/src/app/openapi/model/session-connection-information.ts @@ -19,10 +19,6 @@ export interface SessionConnectionInformation { * Configuration for the local storage of the frontend. The provided key/value pairs should be set by the frontend. */ local_storage: { [key: string]: string; }; - /** - * Cookies, which are required to connect to the session. The provided key/value pairs should be set by the frontend. - */ - cookies: { [key: string]: string; }; t4c_token: string | null; redirect_url: string | null; } diff --git a/frontend/src/app/openapi/model/token-request.ts b/frontend/src/app/openapi/model/token-request.ts index 6d7242765..2477cbcd2 100644 --- a/frontend/src/app/openapi/model/token-request.ts +++ b/frontend/src/app/openapi/model/token-request.ts @@ -13,6 +13,7 @@ export interface TokenRequest { code: string; - state: string; + nonce: string; + code_verifier: string; } diff --git a/frontend/src/app/openapi/model/user.ts b/frontend/src/app/openapi/model/user.ts index 6fc2cfb39..d3af471a2 100644 --- a/frontend/src/app/openapi/model/user.ts +++ b/frontend/src/app/openapi/model/user.ts @@ -15,6 +15,7 @@ import { Role } from './role'; export interface User { id: number; name: string; + idp_identifier: string; role: Role; created: string | null; last_login: string | null;