mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 03:21:56 +02:00
[web] Support multiple certificates in group SSO settings GitOrigin-RevId: 5f014eb82b7e0820040941fdd2bded8d33958316
23 lines
667 B
JavaScript
23 lines
667 B
JavaScript
const mongoose = require('../infrastructure/Mongoose')
|
|
const { Schema } = mongoose
|
|
|
|
const SSOConfigSchema = new Schema(
|
|
{
|
|
entryPoint: { type: String, required: true },
|
|
certificates: { type: Array, default: [''], required: true },
|
|
signatureAlgorithm: { type: String, required: true },
|
|
userIdAttribute: { type: String, required: true },
|
|
userFirstNameAttribute: { type: String },
|
|
userLastNameAttribute: { type: String },
|
|
enabled: { type: Boolean, default: false },
|
|
},
|
|
|
|
{
|
|
collection: 'ssoConfigs',
|
|
minimize: false,
|
|
}
|
|
)
|
|
|
|
exports.SSOConfig = mongoose.model('SSOConfig', SSOConfigSchema)
|
|
exports.SSOConfigSchema = SSOConfigSchema
|