-
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.
Merge pull request #711 from qbicsoftware/development
Release
- Loading branch information
Showing
94 changed files
with
2,329 additions
and
709 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
identity-api/src/main/java/life/qbic/identity/api/AuthenticationToUserIdTranslator.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,21 @@ | ||
package life.qbic.identity.api; | ||
|
||
import java.util.Optional; | ||
import org.springframework.security.core.Authentication; | ||
|
||
/** | ||
* Translates an {@link Authentication} object into an identifier of QBiC | ||
* | ||
* @since 1.2.0 | ||
*/ | ||
public interface AuthenticationToUserIdTranslator { | ||
|
||
/** | ||
* Translates an authentication object to the associated userId | ||
* | ||
* @param authentication | ||
* @return | ||
*/ | ||
Optional<String> translateToUserId(Authentication authentication); | ||
|
||
} |
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
10 changes: 10 additions & 0 deletions
10
identity-api/src/main/java/life/qbic/identity/api/UserPassword.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,10 @@ | ||
package life.qbic.identity.api; | ||
|
||
/** | ||
* An encrypted password belonging to a user | ||
* | ||
* @since 1.1.0 | ||
*/ | ||
public record UserPassword(String userId, String encryptedPassword) { | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
identity-api/src/main/java/life/qbic/identity/api/UserPasswordService.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,18 @@ | ||
package life.qbic.identity.api; | ||
|
||
import java.util.Optional; | ||
|
||
/** | ||
* A service for retrieving encrypted user passwords. | ||
* | ||
* @since 1.2.0 | ||
*/ | ||
public interface UserPasswordService { | ||
|
||
/** | ||
* @param userId the identifier of the user in the datamanager user management | ||
* @return the {@link UserPassword} for a user with the given identifier | ||
*/ | ||
Optional<UserPassword> findEncryptedPasswordForUser(String userId); | ||
|
||
} |
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
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
Oops, something went wrong.