Skip to content

Instantly share code, notes, and snippets.

@JavadocMD
Created May 28, 2014 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JavadocMD/1231a695deeea25c75fe to your computer and use it in GitHub Desktop.
Save JavadocMD/1231a695deeea25c75fe to your computer and use it in GitHub Desktop.
A problematic DeltaSpike Security implementation.
@ApplicationScoped
public class MyAuthorizer {
@Inject
private BasicAuthorizer basicAuth;
@Secures
@SomethingAccess
private boolean accessSomething() {
return basicAuth.isUser(ADMIN);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment