SAML; Dashboard
This commit is contained in:
15
app/models/saml/ServiceProvider.model.js
Normal file
15
app/models/saml/ServiceProvider.model.js
Normal 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
|
||||
19
app/models/saml/SessionParticipant.model.js
Normal file
19
app/models/saml/SessionParticipant.model.js
Normal 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
|
||||
Reference in New Issue
Block a user