mirror of
https://github.com/sasjs/server.git
synced 2025-12-10 19:34:34 +00:00
fix: remove authProvider attribute from user and group payload interface
This commit is contained in:
@@ -318,11 +318,6 @@ components:
|
||||
- isAdmin
|
||||
type: object
|
||||
additionalProperties: false
|
||||
AuthProviderType:
|
||||
enum:
|
||||
- ldap
|
||||
- internal
|
||||
type: string
|
||||
UserPayload:
|
||||
properties:
|
||||
displayName:
|
||||
@@ -336,10 +331,6 @@ components:
|
||||
password:
|
||||
type: string
|
||||
description: 'Password for user'
|
||||
authProvider:
|
||||
$ref: '#/components/schemas/AuthProviderType'
|
||||
description: 'Identifies the source from which user is created'
|
||||
example: internal
|
||||
isAdmin:
|
||||
type: boolean
|
||||
description: 'Account should be admin or not, defaults to false'
|
||||
@@ -391,10 +382,6 @@ components:
|
||||
type: string
|
||||
description: 'Description of the group'
|
||||
example: 'This group represents Data Controller Users'
|
||||
authProvider:
|
||||
$ref: '#/components/schemas/AuthProviderType'
|
||||
description: 'Identifies the source from which group is created'
|
||||
example: 'false'
|
||||
isActive:
|
||||
type: boolean
|
||||
description: 'Group should be active or not, defaults to true'
|
||||
|
||||
@@ -17,11 +17,6 @@ export interface GroupPayload {
|
||||
* @example "This group represents Data Controller Users"
|
||||
*/
|
||||
description: string
|
||||
/**
|
||||
* Identifies the source from which group is created
|
||||
* @example "false"
|
||||
*/
|
||||
authProvider?: AuthProviderType
|
||||
/**
|
||||
* Group should be active or not, defaults to true
|
||||
* @example "true"
|
||||
@@ -33,6 +28,7 @@ interface IGroupDocument extends GroupPayload, Document {
|
||||
groupId: number
|
||||
isActive: boolean
|
||||
users: Schema.Types.ObjectId[]
|
||||
authProvider?: AuthProviderType
|
||||
}
|
||||
|
||||
interface IGroup extends IGroupDocument {
|
||||
|
||||
@@ -18,11 +18,6 @@ export interface UserPayload {
|
||||
* Password for user
|
||||
*/
|
||||
password: string
|
||||
/**
|
||||
* Identifies the source from which user is created
|
||||
* @example "internal"
|
||||
*/
|
||||
authProvider?: AuthProviderType
|
||||
/**
|
||||
* Account should be admin or not, defaults to false
|
||||
* @example "false"
|
||||
@@ -48,6 +43,7 @@ interface IUserDocument extends UserPayload, Document {
|
||||
autoExec: string
|
||||
groups: Schema.Types.ObjectId[]
|
||||
tokens: [{ [key: string]: string }]
|
||||
authProvider?: AuthProviderType
|
||||
}
|
||||
|
||||
export interface IUser extends IUserDocument {
|
||||
|
||||
Reference in New Issue
Block a user