SAML; Dashboard

This commit is contained in:
garrettmills
2020-05-03 20:16:54 -05:00
parent e3ecfb0d37
commit c389e151b5
1778 changed files with 148410 additions and 82 deletions

View File

@@ -0,0 +1,15 @@
const { Model } = require('flitter-orm')
class ServiceProviderModel extends Model {
static get schema() {
return {
name: String,
entity_id: String,
acs_url: String,
active: { type: Boolean, default: true },
slo_url: String,
}
}
}
module.exports = exports = ServiceProviderModel

View File

@@ -0,0 +1,19 @@
const { Model } = require('flitter-orm')
const uuid = require('uuid/v4')
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