-
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: removed docs and started moving core components to extension
- Loading branch information
1 parent
74e6b03
commit a9d8c5b
Showing
152 changed files
with
485 additions
and
12,869 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
4 changes: 2 additions & 2 deletions
4
core/src/main/java/dev/cloudeko/zenei/application/web/model/request/RegisterRequest.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
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
2 changes: 1 addition & 1 deletion
2
core/src/main/java/dev/cloudeko/zenei/application/web/model/response/PublicUserResponse.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
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
16 changes: 4 additions & 12 deletions
16
core/src/main/java/dev/cloudeko/zenei/application/web/resource/frontend/UserResource.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
4 changes: 2 additions & 2 deletions
4
core/src/main/java/dev/cloudeko/zenei/domain/feature/CreateUser.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
2 changes: 1 addition & 1 deletion
2
core/src/main/java/dev/cloudeko/zenei/domain/feature/FindUserByIdentifier.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
2 changes: 1 addition & 1 deletion
2
core/src/main/java/dev/cloudeko/zenei/domain/feature/ListExternalAccessTokens.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
2 changes: 1 addition & 1 deletion
2
core/src/main/java/dev/cloudeko/zenei/domain/feature/ListUsers.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
4 changes: 2 additions & 2 deletions
4
core/src/main/java/dev/cloudeko/zenei/domain/feature/LoginUserWithAuthorizationCode.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package dev.cloudeko.zenei.domain.feature; | ||
|
||
import dev.cloudeko.zenei.domain.model.Token; | ||
import dev.cloudeko.zenei.extension.core.model.session.SessionToken; | ||
|
||
public interface LoginUserWithAuthorizationCode { | ||
Token handle(String provider, String code); | ||
SessionToken handle(String provider, String code); | ||
} |
8 changes: 0 additions & 8 deletions
8
core/src/main/java/dev/cloudeko/zenei/domain/feature/LoginUserWithMagicLink.java
This file was deleted.
Oops, something went wrong.
33 changes: 8 additions & 25 deletions
33
core/src/main/java/dev/cloudeko/zenei/domain/feature/LoginUserWithPassword.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 |
---|---|---|
@@ -1,35 +1,18 @@ | ||
package dev.cloudeko.zenei.domain.feature; | ||
|
||
import dev.cloudeko.zenei.domain.model.Token; | ||
import dev.cloudeko.zenei.domain.model.token.LoginPasswordInput; | ||
import dev.cloudeko.zenei.extension.core.model.session.SessionToken; | ||
|
||
/** | ||
* The {@code LoginUserWithPassword} interface represents a contract for authenticating a user with a password. It defines a | ||
* single method {@code handle} which takes a {@link LoginPasswordInput} object as a parameter and returns a {@link Token} | ||
* object if the authentication is successful. | ||
* <p> | ||
* Implementations of this interface should handle the authentication process by verifying the user's password. If the password | ||
* is valid, a token should be generated and returned . Otherwise, an appropriate exception should be thrown. | ||
* </p> | ||
* The {@link Token} object represents an authentication token and contains information such as the access token, token type, | ||
* and expiration time. | ||
* | ||
* @see Token | ||
* @see LoginPasswordInput | ||
* Interface for handling user login with a password. | ||
*/ | ||
public interface LoginUserWithPassword { | ||
|
||
/** | ||
* The {@code handle} method is a part of the {@code LoginUserWithPassword} interface. It takes a {@link LoginPasswordInput} | ||
* object as a parameter and returns a {@link Token} object if the authentication is successful. | ||
* | ||
* <p>Implementations of this method should handle the authentication process by verifying the user's password. If the | ||
* password | ||
* is valid, a token should be generated and returned. Otherwise, an appropriate exception should be thrown.</p> | ||
* Handles the login process for a user using their identifier and password. | ||
* | ||
* @param loginPasswordInput the input object that contains the user's login credentials (email and password) | ||
* @return the authentication token if the authentication is successful | ||
* @see Token | ||
* @see LoginPasswordInput | ||
* @param identifier the unique identifier of the user (e.g., username or email) | ||
* @param password the password of the user | ||
* @return a SessionToken representing the user's session | ||
*/ | ||
Token handle(LoginPasswordInput loginPasswordInput); | ||
SessionToken handle(String identifier, String password); | ||
} |
Oops, something went wrong.