Skip to content

Commit

Permalink
Merge pull request #31 from equinor/fix/impersonateEndpointUpdate
Browse files Browse the repository at this point in the history
Fix/impersonate endpoint update
  • Loading branch information
aslakihle authored Sep 9, 2024
2 parents 1ab6536 + ae170bb commit b0e9856
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/subsurface-app-management",
"version": "1.1.8",
"version": "1.1.9",
"description": "React Typescript components/hooks to communicate with equinor/sam",
"types": "dist/index.d.ts",
"type": "module",
Expand Down
33 changes: 24 additions & 9 deletions src/api/services/ImpersonateUserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,27 @@ export class ImpersonateUserService {
},
});
}
/**
* Get all impersonate users by application name
* @param appName
* @returns ImpersonateUser Success
* @throws ApiError
*/
public static getApiV1ImpersonateUserGetImpersonateUserForApp(
appName: string
): CancelablePromise<Array<ImpersonateUser>> {
return __request(OpenAPI_Portal, {
method: 'GET',
url: '/api/v1/ImpersonateUser/GetImpersonateUserForApp/{appName}',
path: {
appName: appName,
},
errors: {
400: `Bad Request`,
500: `Server Error`,
},
});
}
/**
* Get all active users
* @returns ImpersonateUser Success
Expand All @@ -79,20 +100,14 @@ export class ImpersonateUserService {
});
}
/**
* Get active user by username
* @param username
* Get active user
* @returns ImpersonateUser Success
* @throws ApiError
*/
public static getActiveUserByUsername(
username?: string
): CancelablePromise<ImpersonateUser> {
public static getActiveUser(): CancelablePromise<ImpersonateUser> {
return __request(OpenAPI_Portal, {
method: 'GET',
url: '/api/v1/ImpersonateUser/ActiveUserByUsername',
query: {
username: username,
},
url: '/api/v1/ImpersonateUser/ActiveUser',
errors: {
400: `Bad Request`,
500: `Server Error`,
Expand Down

0 comments on commit b0e9856

Please sign in to comment.