Skip to content

Commit

Permalink
Fixed some broken namespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
lhilton committed Jun 18, 2020
1 parent 4bf7640 commit b29ef5c
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion create_hmac_url.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

$urlPrefix = 'https://localhost:8443';

$client = $connection . "\0" . 'c' . "\0" . 'hmac-auth-config';
$client = $connection . "\0" . 'c' . "\0" . 'hmac';

$url = $urlPrefix . '/#/client/' . base64_encode($client) . '?' .
'&timestamp=' . $timestamp .
Expand Down
2 changes: 1 addition & 1 deletion extension/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>org.apache.guacamole</groupId>
<artifactId>uninvited_guest-guacamole-auth-hmac</artifactId>
<packaging>jar</packaging>
<version>1.0.0</version>
<version>1.0.1</version>
<name>uninvited_guest-guacamole-auth-hmac</name>
<url>https://github.com/generalsystemsvehicle/uninvited_guest</url>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.generalsystemsvehicle.guacamole.auth.hmac;
package com.generalsystemsvehicle.uninvited_guest.guacamole.auth.hmac;

public class DefaultTimeProvider implements TimeProviderInterface {
public long currentTimeMillis() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.generalsystemsvehicle.guacamole.auth.hmac;
package com.generalsystemsvehicle.uninvited_guest.guacamole.auth.hmac;

import java.util.Map;
import java.util.UUID;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.generalsystemsvehicle.guacamole.auth.hmac;
package com.generalsystemsvehicle.uninvited_guest.guacamole.auth.hmac;

import javax.servlet.http.HttpServletRequest;
import java.util.*;
Expand Down Expand Up @@ -202,7 +202,7 @@ private Map<String, GuacamoleConfiguration> getAuthorizedConfigurationsForUser(A

@Override
public String getIdentifier() {
return "hmac-auth-config";
return "hmac";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.generalsystemsvehicle.guacamole.auth.hmac;
package com.generalsystemsvehicle.uninvited_guest.guacamole.auth.hmac;

import java.util.HashMap;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.generalsystemsvehicle.guacamole.auth.hmac;
package com.generalsystemsvehicle.uninvited_guest.guacamole.auth.hmac;

import com.sun.org.apache.xml.internal.security.utils.Base64;
import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.generalsystemsvehicle.guacamole.auth.hmac;
package com.generalsystemsvehicle.uninvited_guest.guacamole.auth.hmac;

public interface TimeProviderInterface {
public long currentTimeMillis();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.generalsystemsvehicle.guacamole.auth.hmac;
package com.generalsystemsvehicle.uninvited_guest.guacamole.auth.hmac;

import junit.framework.TestCase;
import com.generalsystemsvehicle.guacamole.auth.hmac.SignatureVerifier;
import com.generalsystemsvehicle.uninvited_guest.guacamole.auth.hmac.SignatureVerifier;

public class SignatureVerifierTest extends TestCase {
private SignatureVerifier verifier;
Expand Down
4 changes: 2 additions & 2 deletions up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

clear

rm -fr ./docker-environment/GUACAMOLE_HOME/extensions/uninvited_guest-guacamole-auth-hmac-1.0.0.jar
rm -fr ./docker-environment/GUACAMOLE_HOME/extensions/uninvited_guest-guacamole-auth-hmac-1.0.1.jar
cd extension
if ! mvn package ; then
cd ..
exit;
fi
cd ..
cp ./extension/target/uninvited_guest-guacamole-auth-hmac-1.0.0.jar ./docker-environment/GUACAMOLE_HOME/extensions/
cp ./extension/target/uninvited_guest-guacamole-auth-hmac-1.0.1.jar ./docker-environment/GUACAMOLE_HOME/extensions/

clear

Expand Down

0 comments on commit b29ef5c

Please sign in to comment.