Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix/impersonate endpoint update #31

Merged
merged 2 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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