-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: SASL client (for JAAS-compatible apps)
Add a basic SASL client using the AWS SDK which will leverage the DefaultAWSCredentialsProviderChain to automatically discover and use the appropriate AWS credentials based on your environment variables, AWS credentials files or available metadata sources (EC2, ECS, etc.)
- Loading branch information
Showing
11 changed files
with
547 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/com/stack/security/auth/aws/internal/AwsIamClientCallbackHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.stack.security.auth.aws.internal; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import javax.security.auth.callback.Callback; | ||
import javax.security.auth.callback.UnsupportedCallbackException; | ||
import javax.security.auth.login.AppConfigurationEntry; | ||
|
||
import org.apache.kafka.common.security.auth.AuthenticateCallbackHandler; | ||
|
||
public class AwsIamClientCallbackHandler implements AuthenticateCallbackHandler { | ||
|
||
@Override | ||
public void configure(Map<String, ?> configs, String saslMechanism, List<AppConfigurationEntry> jaasConfigEntries) { | ||
} | ||
|
||
@Override | ||
public void handle(Callback[] callbacks) throws UnsupportedCallbackException { | ||
|
||
} | ||
|
||
@Override | ||
public void close() { | ||
} | ||
} |
Oops, something went wrong.