-
Notifications
You must be signed in to change notification settings - Fork 21
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
Integration federation lookup module #2226
base: main
Are you sure you want to change the base?
Conversation
nqhhdev
commented
Feb 4, 2025
•
edited
Loading
edited
- Setup module: Federation lookup
- Setup module: Federation request token
This PR has been deployed to https://linagora.github.io/twake-on-matrix/2226 |
); | ||
|
||
if (registerResponse.token == null && registerResponse.token!.isEmpty) { | ||
yield const Left(FederationIdentityGetTokenFailure()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yield const Left(FederationIdentityGetTokenFailure()); | |
yield const Left(FederationIdentityRegisterAccountFailure(identityServer)); |
class FederationIdentityGetTokenFailure extends Failure { | ||
const FederationIdentityGetTokenFailure(); | ||
|
||
@override | ||
List<Object?> get props => []; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class FederationIdentityGetTokenFailure extends Failure { | |
const FederationIdentityGetTokenFailure(); | |
@override | |
List<Object?> get props => []; | |
} | |
class FederationIdentityRegisterAccountFailure extends Failure { | |
const FederationIdentityRegisterAccountFailure(idenityServer); | |
final identityServer; | |
@override | |
List<Object?> get props => []; | |
} |
yield const Left(FederationIdentityGetTokenFailure()); | ||
} | ||
|
||
final hashDetails = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should verify hashDetails
response
|
||
final FederationTokenInformation tokenInformation; | ||
|
||
final Set<String>? phoneNumbers; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final Set<String>? phoneNumbers; | |
final Map<ContactId, Set<String>>? phoneNumbers; |
|
||
final Set<String>? phoneNumbers; | ||
|
||
final Set<String>? emailAddresses; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final Set<String>? emailAddresses; | |
final Map<ContactId, Set<String>>? emailAddresses; |
); | ||
} | ||
|
||
Stream<Either<Failure, Success>> execute() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be a Future