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