CoreID/app/models/saml/SessionParticipant.model.js

20 lines
635 B
JavaScript
Raw Normal View History

2020-05-04 01:16:54 +00:00
const { Model } = require('flitter-orm')
2020-08-13 06:56:33 +00:00
const uuid = require('uuid').v4
2020-05-04 01:16:54 +00:00
class SessionParticipantModel extends Model {
static get schema() {
return {
service_provider_id: String,
name_id: String,
name_id_format: { type: String, default: 'urn:oasis:names:tc:SAML:2.0:nameid-format:transient' },
session_index: Number,
slo_url: String,
sp_cert: String, // TODO figure this out
active: { type: Boolean, default: true },
uuid: { type: String, default: uuid },
}
}
}
module.exports = exports = SessionParticipantModel