2019-11-18 09:03:20 -05:00
|
|
|
const mongoose = require('../infrastructure/Mongoose')
|
2019-11-05 09:09:37 -05:00
|
|
|
const { Schema } = mongoose
|
|
|
|
|
|
|
|
const SamlLogSchema = new Schema(
|
|
|
|
{
|
|
|
|
createdAt: { type: Date, default: () => new Date() },
|
2019-12-03 07:34:18 -05:00
|
|
|
data: { type: Object },
|
|
|
|
jsonData: { type: String },
|
2022-08-08 10:19:14 -04:00
|
|
|
path: { type: String },
|
2019-11-05 09:09:37 -05:00
|
|
|
providerId: { type: String, default: '' },
|
2022-08-08 10:19:14 -04:00
|
|
|
samlAssertion: { type: String },
|
2021-04-27 03:52:58 -04:00
|
|
|
sessionId: { type: String, default: '' },
|
2022-08-08 10:19:14 -04:00
|
|
|
userId: { type: String, default: '' },
|
2019-11-05 09:09:37 -05:00
|
|
|
},
|
|
|
|
{
|
2021-04-27 03:52:58 -04:00
|
|
|
collection: 'samlLogs',
|
2019-11-05 09:09:37 -05:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|
2019-11-18 09:03:20 -05:00
|
|
|
exports.SamlLog = mongoose.model('SamlLog', SamlLogSchema)
|
2019-11-05 09:09:37 -05:00
|
|
|
exports.SamlLogSchema = SamlLogSchema
|