mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 13:49:00 +02:00
f1ee27a518
[web] Add tests for SAML log GitOrigin-RevId: 7bc5b25461063b32d3471b7f4ab966f2caa4e70c
22 lines
582 B
JavaScript
22 lines
582 B
JavaScript
const mongoose = require('../infrastructure/Mongoose')
|
|
const { Schema } = mongoose
|
|
|
|
const SamlLogSchema = new Schema(
|
|
{
|
|
createdAt: { type: Date, default: () => new Date() },
|
|
data: { type: Object },
|
|
jsonData: { type: String },
|
|
path: { type: String },
|
|
providerId: { type: String, default: '' },
|
|
samlAssertion: { type: String },
|
|
sessionId: { type: String, default: '' },
|
|
userId: { type: String, default: '' },
|
|
},
|
|
{
|
|
collection: 'samlLogs',
|
|
}
|
|
)
|
|
|
|
exports.SamlLog = mongoose.model('SamlLog', SamlLogSchema)
|
|
exports.SamlLogSchema = SamlLogSchema
|