SamlLog.js 582 B

123456789101112131415161718192021
  1. const mongoose = require('../infrastructure/Mongoose')
  2. const { Schema } = mongoose
  3. const SamlLogSchema = new Schema(
  4. {
  5. createdAt: { type: Date, default: () => new Date() },
  6. data: { type: Object },
  7. jsonData: { type: String },
  8. path: { type: String },
  9. providerId: { type: String, default: '' },
  10. samlAssertion: { type: String },
  11. sessionId: { type: String, default: '' },
  12. userId: { type: String, default: '' },
  13. },
  14. {
  15. collection: 'samlLogs',
  16. }
  17. )
  18. exports.SamlLog = mongoose.model('SamlLog', SamlLogSchema)
  19. exports.SamlLogSchema = SamlLogSchema