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

feat: add recovery flow to Flutter App #89

Merged
merged 65 commits into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
577c563
feat: get current session information
sashatalalasha Aug 18, 2023
6b5239c
feat: create login flow
sashatalalasha Aug 18, 2023
8ec2806
feat: login with email and password
sashatalalasha Aug 23, 2023
b89a99d
feat: register with email and password
sashatalalasha Aug 23, 2023
81290a0
fix: handle all errors incl deserialization error
sashatalalasha Aug 24, 2023
e00383d
feat: logout & get session on home page init
sashatalalasha Aug 24, 2023
a6459a0
feat: show session information
sashatalalasha Aug 29, 2023
bd77e99
feat: add design and refactor blocs
sashatalalasha Sep 1, 2023
e7658a3
fix: change package and folder name
sashatalalasha Sep 1, 2023
e033adf
fix: change package name
sashatalalasha Sep 1, 2023
f297235
docs: update README.md
sashatalalasha Sep 1, 2023
7244c6c
refactor: delete unused icon
sashatalalasha Sep 1, 2023
6f7ddc6
refactor: remove unused packages
sashatalalasha Sep 1, 2023
b43fdd0
chore: format code
sashatalalasha Sep 1, 2023
3cf26b0
refactor: add missing package and delete unused test
sashatalalasha Sep 4, 2023
2f30a6f
feat: change password in settings
sashatalalasha Sep 6, 2023
12307ba
design: add padding to messages
sashatalalasha Sep 6, 2023
0e9fac8
feat: refresh session when updating settings
sashatalalasha Sep 6, 2023
1ce89da
design: add assets' variants
sashatalalasha Sep 8, 2023
e6eb441
feat: display settings dynamically
sashatalalasha Sep 18, 2023
9d17c9d
chore: create widgets
sashatalalasha Sep 20, 2023
5598f8c
fix: chnge submit button value
sashatalalasha Sep 22, 2023
bd1e90f
chore: format code
sashatalalasha Sep 22, 2023
e631a1f
chore: display components dynamically
sashatalalasha Oct 2, 2023
6917e92
chore: clean up and format code
sashatalalasha Oct 2, 2023
8f771f0
fix: aal2 navigation
sashatalalasha Oct 2, 2023
9cd1bd1
Merge branch 'flutter-app-email-password' into flutter-app-change-pas…
sashatalalasha Oct 2, 2023
c9de1f1
chore: remove unnecessary code
sashatalalasha Oct 4, 2023
b815ba1
feat: sign in/up with google account on iOS
sashatalalasha Oct 11, 2023
1cfd74e
chore: add ios url scheme and web clientId
sashatalalasha Oct 11, 2023
1203c21
chore: fix typo and rename variables
sashatalalasha Oct 16, 2023
ce12100
chore: separate exception handlings
sashatalalasha Oct 16, 2023
3719abd
fix: prevent null exception
sashatalalasha Oct 16, 2023
a8a95bb
Merge branch 'flutter-app-email-password' into flutter-app-social-sig…
sashatalalasha Oct 18, 2023
9718f4e
Merge branch 'flutter-app-email-password' into flutter-app-change-pas…
sashatalalasha Oct 18, 2023
78bc88e
chore: delete unused assets & widgets
sashatalalasha Oct 18, 2023
84afc46
fix: remove pop & show provider buttons correctly
sashatalalasha Oct 18, 2023
8e3b2ec
chore: separate exception handlings
sashatalalasha Oct 18, 2023
3d10cc0
chore: format code
sashatalalasha Oct 18, 2023
7439b5c
chore: change package name and add auth packages
sashatalalasha Oct 20, 2023
7a21e5c
feat: add apple & google sign in
sashatalalasha Oct 23, 2023
cf68bc1
chore: delete unnecessary exception handling
sashatalalasha Oct 23, 2023
e64fc40
feat: add flutter app Ory Network example (#82)
sashatalalasha Oct 18, 2023
e21fed5
Merge branch 'master' into flutter-app-social-sign-in
sashatalalasha Oct 25, 2023
a595f29
chore: delete unused assets and widgets
sashatalalasha Oct 25, 2023
3d83120
chore: remove misleading widget
sashatalalasha Oct 25, 2023
8a03f41
Update README.md
sashatalalasha Oct 25, 2023
f1a78c6
Update README.md
sashatalalasha Oct 25, 2023
a08df3d
chore: add formatting
sashatalalasha Oct 25, 2023
d58aa9c
chore: add formatting
sashatalalasha Oct 25, 2023
c8bd923
Merge branch 'master' into flutter-app-change-password
sashatalalasha Oct 25, 2023
ee82b48
Merge branch 'flutter-app-social-sign-in' into flutter-app-change-pas…
sashatalalasha Oct 26, 2023
978e3df
chore: regenerate freezed files
sashatalalasha Oct 26, 2023
8a6c06c
fix: rebuild settings page or reset buttons
sashatalalasha Oct 30, 2023
74cf3ac
chore: refactor auth state & add missing social login functionality
sashatalalasha Nov 3, 2023
1500ee4
Merge branch 'master' into flutter-app-change-password
sashatalalasha Nov 27, 2023
76c49d3
chore: use helpers to get nodes of group
sashatalalasha Nov 27, 2023
a779d50
fix: reset settings when navigating back
sashatalalasha Nov 29, 2023
ccf7fb8
chore: delete build artifacts
sashatalalasha Dec 1, 2023
82ed880
feat: add recovery bloc
sashatalalasha Dec 1, 2023
32bdaef
chore: add conditions for navigation
sashatalalasha Dec 13, 2023
e768f16
Merge branch 'master' into recovery-flow
sashatalalasha Dec 13, 2023
0aa3353
fix: update conditions
sashatalalasha Dec 20, 2023
1d7965f
chore: add exception handling in reset settings & remove snackbar
sashatalalasha Dec 20, 2023
45159c0
chore: remove unused attributes
sashatalalasha Dec 20, 2023
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
10 changes: 6 additions & 4 deletions flutter-ory-network/lib/blocs/auth/auth_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ class AuthBloc extends Bloc<AuthEvent, AuthState> {
}

_onAddSession(AddSession event, Emitter<AuthState> emit) {
emit(AuthState.authenticated(session: event.session));
emit(AuthState.authenticated(
session: event.session, conditions: event.conditions));
}

_onChangeAuthStatus(ChangeAuthStatus event, Emitter<AuthState> emit) {
switch (event.status) {
case AuthStatus.unauthenticated:
emit(const AuthState.unauthenticated());
case AuthStatus.aal2Requested:
emit(const AuthState.aal2Requested());
emit(AuthState.aal2Requested(conditions: event.conditions));
default:
emit(state);
}
Expand All @@ -52,11 +53,12 @@ class AuthBloc extends Bloc<AuthEvent, AuthState> {

final session = await repository.getCurrentSessionInformation();

emit(AuthState.authenticated(session: session));
emit(AuthState.authenticated(
session: session, conditions: event.conditions));
} on UnauthorizedException catch (_) {
emit(const AuthState.unauthenticated());
} on TwoFactorAuthRequiredException catch (_) {
emit(const AuthState.aal2Requested());
emit(AuthState.aal2Requested(conditions: event.conditions));
} on UnknownException catch (e) {
emit(state.copyWith(isLoading: false, errorMessage: e.message));
} catch (_) {
Expand Down
Loading
Loading