app init
This commit is contained in:
@@ -26,7 +26,8 @@ export class AppsCasDetails extends Apps {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.expires = 30;
|
||||
this.expires = 300;
|
||||
this.casUser = 'username';
|
||||
}
|
||||
|
||||
override init(data: any): void {
|
||||
|
||||
@@ -27,6 +27,9 @@ export class AppsFormBasedDetails extends Apps {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.usernameMapping = 'username';
|
||||
this.passwordMapping = 'password';
|
||||
this.passwordAlgorithm = 'NONE';
|
||||
}
|
||||
|
||||
override init(data: any): void {
|
||||
|
||||
@@ -35,6 +35,10 @@ export class AppsJwtDetails extends Apps {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.expires = 300;
|
||||
this.jwtName = 'jwt';
|
||||
this.subject = 'username';
|
||||
this.tokenType = 'POST';
|
||||
}
|
||||
|
||||
override init(data: any): void {
|
||||
|
||||
@@ -71,6 +71,9 @@ export class AppsOauth20Details extends Apps {
|
||||
this.select_scope = ['read'];
|
||||
this.pkce = 'no';
|
||||
this.approvalPrompt = 'auto';
|
||||
this.accessTokenValiditySeconds = '300';
|
||||
this.refreshTokenValiditySeconds = '300';
|
||||
this.subject = 'username';
|
||||
}
|
||||
|
||||
override init(data: any): void {
|
||||
|
||||
@@ -48,10 +48,10 @@ export class AppsSamlDetails extends Apps {
|
||||
binding!: String;
|
||||
|
||||
/**
|
||||
* 0 false 1 true
|
||||
* yes or no
|
||||
*/
|
||||
|
||||
encrypted!: Number;
|
||||
encrypted!: String;
|
||||
/**
|
||||
* metadata_file metadata_url or certificate
|
||||
*/
|
||||
@@ -62,16 +62,23 @@ export class AppsSamlDetails extends Apps {
|
||||
metaFileId!: String;
|
||||
|
||||
/**
|
||||
* 0 original 1 uppercase 2 lowercase
|
||||
* original , uppercase or lowercase
|
||||
*/
|
||||
|
||||
nameIdConvert!: Number;
|
||||
nameIdConvert!: String;
|
||||
|
||||
nameIdSuffix!: String;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.fileType = 'certificate';
|
||||
this.validityInterval = '300';
|
||||
this.nameidFormat = 'persistent';
|
||||
this.nameIdConvert = 'original';
|
||||
this.signature = 'RSAwithSHA1';
|
||||
this.digestMethod = 'SHA1';
|
||||
this.encrypted = 'no';
|
||||
this.binding = 'Redirect-Post';
|
||||
}
|
||||
|
||||
override init(data: any): void {
|
||||
|
||||
@@ -28,6 +28,10 @@ export class AppsTokenBasedDetails extends Apps {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.expires = 300;
|
||||
this.tokenType = 'POST';
|
||||
this.cookieName = 'ltpa_token';
|
||||
this.algorithm = 'AES';
|
||||
}
|
||||
|
||||
override init(data: any): void {
|
||||
|
||||
@@ -86,7 +86,6 @@ export class AppCasDetailsEditerComponent implements OnInit {
|
||||
if (this.isEdit) {
|
||||
this.appsCasDetailsService.get(`${this.id}`).subscribe(res => {
|
||||
this.form.model.init(res.data);
|
||||
//console.log(this.form.model);
|
||||
this.previewImage = this.form.model.iconBase64.toString();
|
||||
this.fileList = [
|
||||
{
|
||||
|
||||
@@ -86,6 +86,7 @@ export class AppOauth20DetailsEditerComponent implements OnInit {
|
||||
if (this.isEdit) {
|
||||
this.appsOauth20DetailsService.get(`${this.id}`).subscribe(res => {
|
||||
this.form.model.init(res.data);
|
||||
//console.log(this.form.model);
|
||||
this.previewImage = this.form.model.iconBase64.toString();
|
||||
this.fileList = [
|
||||
{
|
||||
@@ -178,6 +179,7 @@ export class AppOauth20DetailsEditerComponent implements OnInit {
|
||||
e.preventDefault();
|
||||
this.form.submitting = true;
|
||||
this.form.model.trans();
|
||||
//console.log(this.form.model);
|
||||
(this.isEdit ? this.appsOauth20DetailsService.update(this.form.model) : this.appsOauth20DetailsService.add(this.form.model)).subscribe(
|
||||
res => {
|
||||
if (res.code == 0) {
|
||||
|
||||
@@ -156,6 +156,7 @@
|
||||
<nz-select [(ngModel)]="form.model.tokenType" [ngModelOptions]="{ standalone: true }" name="tokenType"
|
||||
id="tokenType">
|
||||
<nz-option nzValue="POST" nzLabel="POST"></nz-option>
|
||||
<nz-option nzValue="GET" nzLabel="GET"></nz-option>
|
||||
<nz-option nzValue="LTPA" nzLabel="LTPA"></nz-option>
|
||||
</nz-select>
|
||||
</nz-form-control>
|
||||
|
||||
Reference in New Issue
Block a user