Skip to content
Permalink
Browse files
Merge pull request #6 from myrle-krantz/develop
Minor change to support changes in identity.
  • Loading branch information
myrle-krantz committed May 15, 2017
2 parents 31b183a + 2eec308 commit aed5c9278410302fcb1f2eeaa24f44e5f8be2727
Showing 3 changed files with 7 additions and 2 deletions.
@@ -27,7 +27,6 @@
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Optional;

/**
* @author Myrle Krantz
@@ -67,4 +67,10 @@ public static AmitAuthenticationException userPasswordCombinationNotFound() {
public static AmitAuthenticationException passwordExpired() {
return new AmitAuthenticationException("Users password has expired.");
}

@SuppressWarnings("unused") //used in identity
public static AmitAuthenticationException applicationMissingPermissions(final String user, final String application) {
return new AmitAuthenticationException("User '" + user + "' has not given application '"
+ application + "' permission to perform all the requested actions in their name.");
}
}
@@ -27,7 +27,7 @@ public class TokenDeserializationResult {
final private String sourceApplication;
final private String endpointSet;

TokenDeserializationResult(
public TokenDeserializationResult(
final String userIdentifier,
final Date expiration,
final String sourceApplication,

0 comments on commit aed5c92

Please sign in to comment.