René's URL Explorer Experiment


Title: canActivate is broken on 6.0.0 · Issue #2312 · angular/angularfire · GitHub

Open Graph Title: canActivate is broken on 6.0.0 · Issue #2312 · angular/angularfire

X Title: canActivate is broken on 6.0.0 · Issue #2312 · angular/angularfire

Description: Version info Angular: 9-rc14 Firebase: 7.8.0 AngularFire: 6.0.0-rc0 Other (e.g. Ionic/Cordova, Node, browser, operating system): How to reproduce these conditions Failing test unit, Plunkr, or JSFiddle demonstrating the problem Steps to ...

Open Graph Description: Version info Angular: 9-rc14 Firebase: 7.8.0 AngularFire: 6.0.0-rc0 Other (e.g. Ionic/Cordova, Node, browser, operating system): How to reproduce these conditions Failing test unit, Plunkr, or JSFi...

X Description: Version info Angular: 9-rc14 Firebase: 7.8.0 AngularFire: 6.0.0-rc0 Other (e.g. Ionic/Cordova, Node, browser, operating system): How to reproduce these conditions Failing test unit, Plunkr, or JSFi...

Opengraph URL: https://github.com/angular/angularfire/issues/2312

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"canActivate is broken on 6.0.0","articleBody":"\u003c!--\r\n\r\nIMPORTANT! YOU MUST FOLLOW THESE INSTRUCTIONS OR YOUR ISSUE WILL BE CLOSED.\r\n\r\nThank you for contributing to the Angular and Firebase communities!\r\n\r\nHave a usage question?\r\n=======================\r\nWe get lots of those and we love helping you, but GitHub is not the best place for them and they will be closed. Here are some resources to get help:\r\n\r\n- Go through the Developer's Guide: https://github.com/angular/angularfire2#developer-guide\r\n\r\nIf the official documentation doesn't help, try asking through our officially supported channels:\r\n\r\n- Firebase Google Group: https://groups.google.com/forum/#!forum/firebase-talk\r\n- Stack Overflow: https://stackoverflow.com/questions/tagged/angular (include the firebase and angularfire tags, too!)\r\n\r\n*Please avoid double posting across multiple channels!*\r\n\r\nThink you found a bug?\r\n=======================\r\nYeah, we're definitely not perfect! Please use the bug report template below and include a minimal repro when opening the issue.\r\n\r\nHave a feature request?\r\n========================\r\nGreat, we love hearing how we can improve our products! Remove the template below and\r\nprovide an explanation of your feature request. Provide code samples if applicable. Try to\r\nthink about what it will allow you to do that you can't do today? How will it make current\r\nworkarounds straightforward? What potential bugs and edge cases does it help to avoid?\r\n\r\n--\u003e\r\n\r\n\r\n### Version info\r\n\r\n\u003c!-- What versions of the following libraries are you using? Note that your issue may already\r\nbe fixed in the latest versions. --\u003e\r\n\r\n**Angular:** 9-rc14\r\n\r\n**Firebase:** 7.8.0\r\n\r\n**AngularFire:** 6.0.0-rc0\r\n\r\n**Other (e.g. Ionic/Cordova, Node, browser, operating system):**\r\n\r\n### How to reproduce these conditions\r\n\r\n**Failing test unit, Plunkr, or JSFiddle demonstrating the problem**\r\n\r\n\u003c!-- \r\nProvide a failing test unit, or create a minimal, complete, and \r\nverifiable example (http://stackoverflow.com/help/mcve) using either \r\nPlunker (http://plnkr.co/) or JSFiddle (https://jsfiddle.net/).\r\n--\u003e\r\n\r\n**Steps to set up and reproduce**\r\n\r\n\u003c!-- detailed instructions to run your minimal repro or to recreate the environment --\u003e\r\n\r\n**Sample data and security rules**\r\n\r\n\u003c-- include/attach/link to some json sample data (or provide credentials to a sanitized, test Firebase project) --\u003e\r\n\r\n### Debug output\r\n\r\n** Errors in the JavaScript console **\r\n\r\n** Output from `firebase.database().enableLogging(true);` **\r\n\r\n** Screenshots **\r\n\r\n### Expected behavior\r\n\r\ncanActivate works\r\n\r\n### Actual behavior\r\n\r\ncanActivate doesn't work \r\n\r\n\r\n```\r\ncanActivate(\r\n    next: ActivatedRouteSnapshot,\r\n    state: RouterStateSnapshot): Observable\u003cboolean\u003e | Promise\u003cboolean\u003e | boolean {\r\n    if (this.authenticationService.authenticated()) {\r\n      return true;\r\n    }\r\n\r\n    return this.authenticationService.user.pipe(take(1)).pipe(map(user =\u003e !!user)).pipe(tap(loggedIn =\u003e {\r\n      if (!loggedIn) {\r\n        this.logger.warn(`Access denied`);\r\n        this.snackBar.open('Access denied', null, {\r\n          duration: 2000,\r\n        });\r\n        this.router.navigate(['/login']);\r\n      }\r\n    }))\r\n\r\n  }\r\n```\r\n\r\nThe above used to work. \r\n\r\nCurrently with 6.0.0-rc0 the above doesn't work \r\n\r\nReturning `true` or an observable does not allow the route to work \r\n","author":{"url":"https://github.com/jimmykane","@type":"Person","name":"jimmykane"},"datePublished":"2020-02-05T11:44:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/2312/angularfire/issues/2312"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ccb60022-6f6c-ac0b-5660-a91b8208bc77
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC8B0:30B305:1110BD1:16F88AD:6A5AAD4E
html-safe-nonce18bebdfd59446ff7c259ab23895588c2d1ec22470ee10a889fa199c8522c125a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEIwOjMwQjMwNToxMTEwQkQxOjE2Rjg4QUQ6NkE1QUFENEUiLCJ2aXNpdG9yX2lkIjoiNDUzOTUyNTMyOTc3ODgxNDI4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca7a4d6db5e0ee488a492621b6472ca7a3c657300e7daacf86b646cdaff9982db
hovercard-subject-tagissue:560317999
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angularfire/2312/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4595356ae22ca9d9034810f9338b831585b870b809b85a35c103046b8a7d6a95/angular/angularfire/issues/2312
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4595356ae22ca9d9034810f9338b831585b870b809b85a35c103046b8a7d6a95/angular/angularfire/issues/2312
og:image:altVersion info Angular: 9-rc14 Firebase: 7.8.0 AngularFire: 6.0.0-rc0 Other (e.g. Ionic/Cordova, Node, browser, operating system): How to reproduce these conditions Failing test unit, Plunkr, or JSFi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejimmykane
hostnamegithub.com
expected-hostnamegithub.com
None21c53da6db0c40484841ba32fe19ecf485e7e734334faab487cd59d884d2bb33
turbo-cache-controlno-preview
go-importgithub.com/angular/angularfire git https://github.com/angular/angularfire.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id49453413
octolytics-dimension-repository_nwoangular/angularfire
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49453413
octolytics-dimension-repository_network_root_nwoangular/angularfire
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6e85f20f54e1147d8162094880590864abefff6b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angularfire/issues/2312#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fissues%2F2312
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fissues%2F2312
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangularfire
Reloadhttps://github.com/angular/angularfire/issues/2312
Reloadhttps://github.com/angular/angularfire/issues/2312
Reloadhttps://github.com/angular/angularfire/issues/2312
Please reload this pagehttps://github.com/angular/angularfire/issues/2312
angular https://github.com/angular
angularfirehttps://github.com/angular/angularfire
Notifications https://github.com/login?return_to=%2Fangular%2Fangularfire
Fork 2.2k https://github.com/login?return_to=%2Fangular%2Fangularfire
Star 7.8k https://github.com/login?return_to=%2Fangular%2Fangularfire
Code https://github.com/angular/angularfire
Issues 295 https://github.com/angular/angularfire/issues
Pull requests 20 https://github.com/angular/angularfire/pulls
Discussions https://github.com/angular/angularfire/discussions
Actions https://github.com/angular/angularfire/actions
Projects https://github.com/angular/angularfire/projects
Security and quality 0 https://github.com/angular/angularfire/security
Insights https://github.com/angular/angularfire/pulse
Code https://github.com/angular/angularfire
Issues https://github.com/angular/angularfire/issues
Pull requests https://github.com/angular/angularfire/pulls
Discussions https://github.com/angular/angularfire/discussions
Actions https://github.com/angular/angularfire/actions
Projects https://github.com/angular/angularfire/projects
Security and quality https://github.com/angular/angularfire/security
Insights https://github.com/angular/angularfire/pulse
canActivate is broken on 6.0.0https://github.com/angular/angularfire/issues/2312#top
https://github.com/jimmykane
jimmykanehttps://github.com/jimmykane
on Feb 5, 2020https://github.com/angular/angularfire/issues/2312#issue-560317999
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.