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

Fabiangosebrink/improve auto login #987

Merged
merged 30 commits into from
Feb 27, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
473603a
updated auto login example
FabianGosebrink Feb 26, 2021
717a5d9
prettier
FabianGosebrink Feb 26, 2021
dab4e2b
fixed autologin sample
FabianGosebrink Feb 27, 2021
6db67f2
modified more
FabianGosebrink Feb 27, 2021
933ef2b
possible working version
FabianGosebrink Feb 27, 2021
453f3ba
small UI clean up
damienbod Feb 27, 2021
d6d6249
added better stylign and errors
FabianGosebrink Feb 27, 2021
1eca1ac
moved the guard into the library
FabianGosebrink Feb 27, 2021
3c929d8
guard into the lib
FabianGosebrink Feb 27, 2021
f735561
MIgrated azure AD example
FabianGosebrink Feb 27, 2021
0c73c7c
removed unused param
FabianGosebrink Feb 27, 2021
f2ee49a
reformatted documentation
FabianGosebrink Feb 27, 2021
5953ba0
switched jwtkeys to interface
FabianGosebrink Feb 27, 2021
1d11074
Add this to the DOCS, redirect path to an auto login guard
damienbod Feb 27, 2021
76a4062
fixing incorrect login
damienbod Feb 27, 2021
2bd9c9f
switching to refresh tokens
damienbod Feb 27, 2021
93903f4
Updating Azure templates
damienbod Feb 27, 2021
4ee8ba6
Updating Azure B2C example
damienbod Feb 27, 2021
654a0bb
Updating Azure B2C example
damienbod Feb 27, 2021
e2ed852
changelog
damienbod Feb 27, 2021
f772532
updated samples link
FabianGosebrink Feb 27, 2021
e062428
updated docs
FabianGosebrink Feb 27, 2021
8e65a3b
updated docs
FabianGosebrink Feb 27, 2021
8dd226d
added tests and docs
FabianGosebrink Feb 27, 2021
cbc84fc
prettier
FabianGosebrink Feb 27, 2021
7031f55
change log
damienbod Feb 27, 2021
569ebae
Merge branch 'fabiangosebrink/improve-auto-login' of https://github.c…
damienbod Feb 27, 2021
7c44730
11.6.1
damienbod Feb 27, 2021
30046e8
11.6.1
damienbod Feb 27, 2021
499d882
11.6.1
damienbod Feb 27, 2021
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
Prev Previous commit
Next Next commit
added better stylign and errors
  • Loading branch information
FabianGosebrink committed Feb 27, 2021
commit d6d6249f0388965f3a7b69c54e3a3f8cb361a920
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ export class CheckAuthService {

return isAuthenticated;
}),
catchError(() => of(false))
catchError((error) => {
this.loggerService.logError(error);
return of(false);
})
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ export class AuthorizationGuard implements CanActivate {
if (isAuthorized) {
if (storedRoute) {
localStorage.removeItem('redirect');
console.log('@@@ navigation to', storedRoute);
this.router.navigate([storedRoute]);
}
return true;
}

if (!storedRoute) {
console.log('@@@ writing to', storedRoute);
this.write(state.url);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
li a {
.nav-link {
cursor: pointer;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Observable } from 'rxjs';
@Component({
selector: 'app-navigation',
templateUrl: 'navigation.component.html',
styleUrls: ['navigation.component.css'],
})
export class NavigationComponent implements OnInit {
isAuthenticated$: Observable<boolean>;
Expand Down