Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JWT security updates with fingerprint #352

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static class Token implements Serializable {
@Serial
private static final long serialVersionUID = -5807006482186140531L;

public final Date expires;
public final DateTime expires;
public final String jwt;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@

public interface Authenticator {

Result<Authentication, AuthenticationFailure> authenticate( String email, String password, Optional<String> tfaCode );
Result<Authentication, AuthenticationFailure> authenticate( String email, String password, Optional<String> tfaCode, Optional<String> fingerprint );

Result<Authentication, AuthenticationFailure> authenticate( String email, Optional<String> tfaCode );

Result<Authentication, AuthenticationFailure> refreshToken( String refreshToken, Optional<String> currentOrganization );
Result<Authentication, AuthenticationFailure> refreshToken( String refreshToken, Optional<String> currentOrganization, Optional<String> fingerprint );

Optional<Authentication> authenticateTrusted( String email );

Optional<Authentication> authenticateWithApiKey( String accessKey, String apiKey );

void invalidate( String email );

Result<Authentication, AuthenticationFailure> authenticateWithActiveOrgId( String jwtToken, String organizationId );
Result<Authentication, AuthenticationFailure> authenticateWithActiveOrgId( String accessToken, String refreshToken, String organizationId, Optional<String> fingerprint );
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</distributionManagement>

<properties>
<oap.project.version>22.6.6</oap.project.version>
<oap.project.version>22.6.7-fingerprint</oap.project.version>

<oap.deps.config.version>21.0.0</oap.deps.config.version>
<oap.deps.oap-teamcity.version>21.0.1</oap.deps.oap-teamcity.version>
Expand Down
Loading