Skip to content

Commit

Permalink
Compatibility with IdentityIQ 7.3
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Enrico Ragucci <mario@whisperedshouts.de>
  • Loading branch information
ghmer committed Sep 13, 2018
1 parent f3e044c commit 53f1331
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>tiny-mfa-plugin</artifactId>
<version>1.6</version>
<version>1.7</version>
<name>tiny-mfa-plugin</name>
<dependencies>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions src/main/import/install/mfa-iiq-objects-import.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ Map response = new HashMap();
response.put("result", false);
//derive proper classloader via plugins cache
ClassLoader clsLoader = sailpoint.server.Environment.getEnvironment().getPluginsCache().getClassLoader("tiny-mfa-plugin");
ClassLoader clsLoader = sailpoint.server.Environment.getEnvironment().getPluginsCache().getClassLoader("tiny_mfa_plugin");
if(clsLoader != null) {
try {
ClassLoader clsLoader = sailpoint.server.Environment.getEnvironment().getPluginsCache().getClassLoader("tiny-mfa-plugin");
ClassLoader clsLoader = sailpoint.server.Environment.getEnvironment().getPluginsCache().getClassLoader("tiny_mfa_plugin");
System.out.println("setting parameters");
//method has two parameters of type String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class TinyMfaService extends BasePluginResource {

@Override
public String getPluginName() {
return "tiny-mfa-plugin";
return "tiny_mfa_plugin";
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/manifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE Plugin PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<Plugin name="tiny-mfa-plugin" displayName="Tiny MFA Plugin" version="1.6" disabled="false" certificationLevel="None" minSystemVersion="7.1" maxSystemVersion="7.2">
<Plugin name="tiny_mfa_plugin" displayName="Tiny MFA Plugin" version="1.7" disabled="false" certificationLevel="None" minSystemVersion="7.1" maxSystemVersion="7.3">
<Attributes>
<Map>
<entry key="minUpgradableVersion" value="1.5"/>
Expand Down
8 changes: 4 additions & 4 deletions src/main/ui/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@
$routeProvider

.when('/', {
templateUrl : PluginHelper.getPluginFileUrl('tiny-mfa-plugin', 'ui/partials/home.html'),
templateUrl : PluginHelper.getPluginFileUrl('tiny_mfa_plugin', 'ui/partials/home.html'),
controller : 'HomeController'
})

.when('/home', {
templateUrl : PluginHelper.getPluginFileUrl('tiny-mfa-plugin', 'ui/partials/home.html'),
templateUrl : PluginHelper.getPluginFileUrl('tiny_mfa_plugin', 'ui/partials/home.html'),
controller : 'HomeController'
})

.when('/qrcode', {
templateUrl : PluginHelper.getPluginFileUrl('tiny-mfa-plugin', 'ui/partials/qrcode.html'),
templateUrl : PluginHelper.getPluginFileUrl('tiny_mfa_plugin', 'ui/partials/qrcode.html'),
controller : 'QRCodeController'
})

.when('/validate', {
templateUrl : PluginHelper.getPluginFileUrl('tiny-mfa-plugin', 'ui/partials/validate.html'),
templateUrl : PluginHelper.getPluginFileUrl('tiny_mfa_plugin', 'ui/partials/validate.html'),
controller : 'ValidateController'
})

Expand Down
2 changes: 1 addition & 1 deletion src/main/ui/js/buttonInject.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
jQuery(document).ready(function(){
var tinyMfaPluginUrl = SailPoint.CONTEXT_PATH + '/plugins/pluginPage.jsf?pn=tiny-mfa-plugin';
var tinyMfaPluginUrl = SailPoint.CONTEXT_PATH + '/plugins/pluginPage.jsf?pn=tiny_mfa_plugin';
jQuery("ul.navbar-right li:first")
.before(
'<li class="dropdown">' +
Expand Down
12 changes: 6 additions & 6 deletions src/main/ui/page.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
<meta name="description" content="Tiny MFA Plugin Page" />
<meta name="author" content="Mario Enrico Ragucci" />
<!-- Libraries -->
<script type="text/javascript" src="#{plugins.requestContextPath}/plugin/tiny-mfa-plugin/ui/js/lib/angular.min.js"></script>
<script type="text/javascript" src="#{plugins.requestContextPath}/plugin/tiny-mfa-plugin/ui/js/lib/angular-route.min.js"></script>
<script type="text/javascript" src="#{plugins.requestContextPath}/plugin/tiny-mfa-plugin/ui/js/lib/kjua.min.js"></script>
<link rel="stylesheet" type="text/css" href="#{plugins.requestContextPath}/plugin/tiny-mfa-plugin/ui/css/app.css"></link>
<script type="text/javascript" src="#{plugins.requestContextPath}/plugin/tiny_mfa_plugin/ui/js/lib/angular.min.js"></script>
<script type="text/javascript" src="#{plugins.requestContextPath}/plugin/tiny_mfa_plugin/ui/js/lib/angular-route.min.js"></script>
<script type="text/javascript" src="#{plugins.requestContextPath}/plugin/tiny_mfa_plugin/ui/js/lib/kjua.min.js"></script>
<link rel="stylesheet" type="text/css" href="#{plugins.requestContextPath}/plugin/tiny_mfa_plugin/ui/css/app.css"></link>
</head>

<body>
<div class="container-fluid container-fluid-shifted" data-ng-app="tinyMfaPluginApp">
<div class="row content">
<div class="col-sm-9">
<div data-ng-view=""></div>
<script src="#{plugins.requestContextPath}/plugin/tiny-mfa-plugin/ui/js/app.js"></script>
<script src="#{plugins.requestContextPath}/plugin/tiny-mfa-plugin/ui/js/controllers.js"></script>
<script src="#{plugins.requestContextPath}/plugin/tiny_mfa_plugin/ui/js/app.js"></script>
<script src="#{plugins.requestContextPath}/plugin/tiny_mfa_plugin/ui/js/controllers.js"></script>
</div>
</div>
</div>
Expand Down

0 comments on commit 53f1331

Please sign in to comment.