File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,11 +24,3 @@ type AcsEndpoint struct {
2424 Index int64 `json:"index,omitempty"`
2525 Url string `json:"url,omitempty"`
2626}
27-
28- func NewAcsEndpoint () * AcsEndpoint {
29- return & AcsEndpoint {}
30- }
31-
32- func (a * AcsEndpoint ) IsApplicationInstance () bool {
33- return true
34- }
Original file line number Diff line number Diff line change @@ -23,11 +23,3 @@ import ()
2323type JwkUse struct {
2424 Use string `json:"use,omitempty"`
2525}
26-
27- func NewJwkUse () * JwkUse {
28- return & JwkUse {}
29- }
30-
31- func (a * JwkUse ) IsApplicationInstance () bool {
32- return true
33- }
Original file line number Diff line number Diff line change @@ -24,11 +24,3 @@ type OAuth2Actor struct {
2424 Id string `json:"id,omitempty"`
2525 Type string `json:"type,omitempty"`
2626}
27-
28- func NewOAuth2Actor () * OAuth2Actor {
29- return & OAuth2Actor {}
30- }
31-
32- func (a * OAuth2Actor ) IsApplicationInstance () bool {
33- return true
34- }
Original file line number Diff line number Diff line change @@ -27,11 +27,3 @@ type OAuth2Client struct {
2727 ClientUri string `json:"client_uri,omitempty"`
2828 LogoUri string `json:"logo_uri,omitempty"`
2929}
30-
31- func NewOAuth2Client () * OAuth2Client {
32- return & OAuth2Client {}
33- }
34-
35- func (a * OAuth2Client ) IsApplicationInstance () bool {
36- return true
37- }
Original file line number Diff line number Diff line change @@ -36,11 +36,3 @@ type OAuth2RefreshToken struct {
3636 Status string `json:"status,omitempty"`
3737 UserId string `json:"userId,omitempty"`
3838}
39-
40- func NewOAuth2RefreshToken () * OAuth2RefreshToken {
41- return & OAuth2RefreshToken {}
42- }
43-
44- func (a * OAuth2RefreshToken ) IsApplicationInstance () bool {
45- return true
46- }
Original file line number Diff line number Diff line change @@ -23,11 +23,3 @@ import ()
2323type OAuth2ScopesMediationPolicyRuleCondition struct {
2424 Include []string `json:"include,omitempty"`
2525}
26-
27- func NewOAuth2ScopesMediationPolicyRuleCondition () * OAuth2ScopesMediationPolicyRuleCondition {
28- return & OAuth2ScopesMediationPolicyRuleCondition {}
29- }
30-
31- func (a * OAuth2ScopesMediationPolicyRuleCondition ) IsApplicationInstance () bool {
32- return true
33- }
Original file line number Diff line number Diff line change @@ -24,11 +24,3 @@ type WebAuthnUserFactorProfile struct {
2424 AuthenticatorName string `json:"authenticatorName,omitempty"`
2525 CredentialId string `json:"credentialId,omitempty"`
2626}
27-
28- func NewWebAuthnUserFactorProfile () * WebAuthnUserFactorProfile {
29- return & WebAuthnUserFactorProfile {}
30- }
31-
32- func (a * WebAuthnUserFactorProfile ) IsUserFactorInstance () bool {
33- return true
34- }
Original file line number Diff line number Diff line change @@ -387,14 +387,18 @@ function isInstance(model) {
387387 model . modelName == "CsrMetadataSubject" ||
388388 model . modelName == "CsrMetadataSubjectAltNames" ||
389389 model . modelName == "OAuth2Claim" ||
390- model . modelName == "OAuth2ScopeConsentGrant" ) {
390+ model . modelName == "OAuth2ScopeConsentGrant" ||
391+ model . modelName == "AcsEndpoint" ||
392+ model . modelName == "JwkUse" ||
393+ model . modelName == "OAuth2Actor" ||
394+ model . modelName == "OAuth2Client" ||
395+ model . modelName == "OAuth2RefreshToken" ||
396+ model . modelName == "WebAuthnUserFactorProfile" ||
397+ model . modelName == "OAuth2ScopesMediationPolicyRuleCondition" ) {
391398 return false
392399 }
393400
394- if ( model . tags [ 0 ] == "Application" || model . tags [ 0 ] == "UserFactor" ) {
395- return true
396- }
397- return false
401+ return model . tags [ 0 ] == "Application" || model . tags [ 0 ] == "UserFactor" ;
398402}
399403
400404function log ( item ) {
You can’t perform that action at this time.
0 commit comments