From 087919a5f8c4a57fbc8d2438234fa8addb7c46c2 Mon Sep 17 00:00:00 2001 From: Ersun Warncke Date: Mon, 8 Jun 2020 17:48:19 -0400 Subject: [PATCH] add saml cache provider GitOrigin-RevId: ad9f3e81da37bd932822f13db441ce8afc342eea --- services/web/app/src/models/SamlCache.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 services/web/app/src/models/SamlCache.js diff --git a/services/web/app/src/models/SamlCache.js b/services/web/app/src/models/SamlCache.js new file mode 100644 index 0000000000..d6a53edc21 --- /dev/null +++ b/services/web/app/src/models/SamlCache.js @@ -0,0 +1,15 @@ +const mongoose = require('../infrastructure/Mongoose') +const { Schema } = mongoose + +const SamlCacheSchema = new Schema( + { + createdAt: { type: Date }, + requestId: { type: String } + }, + { + collection: 'samlCache' + } +) + +exports.SamlCache = mongoose.model('SamlCache', SamlCacheSchema) +exports.SamlCacheSchema = SamlCacheSchema