mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
f1ee27a518
[web] Add tests for SAML log GitOrigin-RevId: 7bc5b25461063b32d3471b7f4ab966f2caa4e70c
21 lines
582 B
JavaScript
21 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
|