File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
sample-code-flow-multi-AAD/src/app/home
sample-code-flow-multi-Auth0-ID4/src/app/home Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,11 @@ import { Observable } from 'rxjs';
1414} )
1515export class HomeComponent implements OnInit {
1616 configurations : OpenIdConfiguration [ ] ;
17+
1718 userDataChanged$ : Observable < OidcClientNotification < any > > ;
19+
1820 userData$ : Observable < UserDataResult > ;
21+
1922 isAuthenticated$ : Observable < AuthenticatedResult > ;
2023
2124 constructor ( public oidcSecurityService : OidcSecurityService ) { }
@@ -35,7 +38,7 @@ export class HomeComponent implements OnInit {
3538 }
3639
3740 logout ( configId : string ) {
38- this . oidcSecurityService . logoff ( configId ) ;
41+ this . oidcSecurityService . logoff ( configId ) . subscribe ( ( result ) => console . log ( result ) ) ;
3942 }
4043
4144 refreshSession ( configId : string ) {
Original file line number Diff line number Diff line change @@ -14,8 +14,11 @@ import { Observable } from 'rxjs';
1414} )
1515export class HomeComponent implements OnInit {
1616 configurations : OpenIdConfiguration [ ] ;
17+
1718 userDataChanged$ : Observable < OidcClientNotification < any > > ;
19+
1820 userData$ : Observable < UserDataResult > ;
21+
1922 isAuthenticated$ : Observable < AuthenticatedResult > ;
2023
2124 constructor ( public oidcSecurityService : OidcSecurityService ) { }
@@ -50,7 +53,7 @@ export class HomeComponent implements OnInit {
5053 }
5154
5255 logout ( configId : string ) {
53- this . oidcSecurityService . logoff ( configId ) ;
56+ this . oidcSecurityService . logoff ( configId ) . subscribe ( ( result ) => console . log ( result ) ) ;
5457 }
5558
5659 refreshSessionId4 ( configId : string ) {
Original file line number Diff line number Diff line change @@ -14,8 +14,11 @@ import { Observable } from 'rxjs';
1414} )
1515export class HomeComponent implements OnInit {
1616 configurations : OpenIdConfiguration [ ] ;
17+
1718 userDataChanged$ : Observable < OidcClientNotification < any > > ;
19+
1820 userData$ : Observable < UserDataResult > ;
21+
1922 isAuthenticated$ : Observable < AuthenticatedResult > ;
2023
2124 constructor ( public oidcSecurityService : OidcSecurityService ) { }
@@ -35,7 +38,7 @@ export class HomeComponent implements OnInit {
3538 }
3639
3740 logout ( configId : string ) {
38- this . oidcSecurityService . logoff ( configId ) ;
41+ this . oidcSecurityService . logoff ( configId ) . subscribe ( ( result ) => console . log ( result ) ) ;
3942 }
4043
4144 refreshSessionId4 ( configId : string ) {
You can’t perform that action at this time.
0 commit comments