• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

edx / frontend-auth
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: renovate/prop-types-15.x
DEFAULT BRANCH: master
Repo Added 17 Sep 2018 08:41PM UTC
Files 10
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH robrap/ARCH-948-fix-ensure-authentication
branch: robrap/ARCH-948-fix-ensure-authentication
CHANGE BRANCH
x
Reset
  • robrap/ARCH-948-fix-ensure-authentication
  • abutterworth/403-do-not-logout
  • abutterworth/add-token-logging
  • abutterworth/add-token-refresh-failure-callback
  • abutterworth/anonymous-access-refactor
  • abutterworth/csrf
  • abutterworth/fix-arch-687
  • abutterworth/frontend-build
  • abutterworth/refactor-access-token
  • abutterworth/refactor-queuing
  • abutterworth/upgrade-build
  • abutterworth/upgrade-node
  • ammar/export-logging-utils
  • ddumesnil/admin-in-auth
  • djoy/export_more_actions
  • djoy/factor_out_saving_actions
  • djoy/loaded_flag
  • djoy/promise-ify-ensure-methods
  • djoy/transpile_es6_node_modules
  • djoy/update_readme_with_example
  • djoy/webpack_mode
  • douglashall/ARCH-653
  • douglashall/ARCH-711
  • douglashall/ARCH-840
  • douglashall/ARCH-873
  • douglashall/add_user_profile_fields
  • douglashall/csrf
  • douglashall/explicit_jwt_cookie_auth
  • douglashall/fix_auth_interceptor
  • douglashall/fix_private_route
  • douglashall/fix_redirect_loop
  • douglashall/npm_publish
  • douglashall/peer_dependencies
  • douglashall/user_profile
  • douglashall/verify_access_token_expiration
  • iahmad/ENT-1805-Authentication-for-frontend-learner-app
  • master
  • mikix/redirect-path
  • mushtaq/403-do-not-logout
  • renovate/axios-0.x
  • renovate/axios-mock-adapter-1.x
  • renovate/camelcase-keys-6.x
  • renovate/commitlint-monorepo
  • renovate/configure
  • renovate/coveralls-3.x
  • renovate/edx-frontend-logging-3.x
  • renovate/enzyme-3.x
  • renovate/enzyme-adapter-react-16-1.x
  • renovate/eslint-6.x
  • renovate/husky-3.x
  • renovate/major-commitlint-monorepo
  • renovate/major-reactrouter-monorepo
  • renovate/npm-axios-vulnerability
  • renovate/pin-dependencies
  • renovate/prop-types-15.x
  • renovate/react-monorepo
  • renovate/redux-4.x
  • renovate/semantic-release-monorepo
  • renovate/uglifyjs-webpack-plugin-2.x
  • renovate/webpack-4.x
  • renovate/webpack-cli-3.x
  • robrap/ARCH-379-get-user-id
  • robrap/ARCH-687-update-logging
  • robrap/ARCH-948-alternate-read-cookies
  • robrap/ARCH-948-clean-up
  • robrap/ARCH-948-more-refresh-token-changes
  • robrap/add-comment-1
  • robrap/add-comment-2
  • robrap/update-tests
  • robrap/v1.3.2-es-check
  • tuchfarber/make_ssr_friendly
  • tuchfarber/update_ssr_friendly_logging
  • v1.0.0
  • v1.0.1
  • v1.0.2
  • v1.0.3
  • v1.1.0
  • v1.2.0
  • v1.2.1
  • v1.3.0
  • v1.3.1
  • v1.3.2
  • v2.0.0
  • v3.0.0
  • v3.0.2
  • v3.0.3
  • v3.1.0
  • v3.2.0
  • v4.0.0
  • v5.0.0
  • v5.1.0
  • v5.1.1
  • v5.1.2
  • v5.1.3
  • v5.2.0
  • v5.3.0
  • v5.3.1
  • v5.3.2
  • v5.3.3
  • v5.3.4
  • v5.3.5
  • v6.0.0
  • v6.0.1
  • v6.0.2
  • v7.0.0
  • v7.0.1
  • v8.0.0
  • v9.0.0

pending completion
487

push

travis-ci

robrap
fix: refactor ensurePublicOrAuthenticationAndCookies

- Protects user against an infinite redirect to login
- Refactors ensurePublicOrAuthenticationAndCookies with the
below breaking changes.

BREAKING CHANGE: The refactor has the following breaking changes:

- Renamed ensurePublicOrAuthenticationAndCookies to
ensureAuthenticatedUser.
- Removed the capability to handle public routes in
ensureAuthenticatedUser.  Just don't call it.
- Removed getAuthenticationState() function which was unreliable,
because it used the cookie which could have expired since it was tested.
Instead, use the new response sent to the ensureAuthenticatedUser
promise (see below).
- Removed the deprecated callback.  Just use the promise instead.

The promise is now resolved with an object of the form:
```
{
  authenticatedUser: {...},
  decodedAccessToken: {...},
}

In the above object:
- ``authenticatedUser`` is an object containing user account data that
was stored in the access token.
- ``decodedAccessToken`` is the raw version of the data used to create
``authenticatedUser``.

ARCH-948

60 of 60 branches covered (100.0%)

Branch coverage included in aggregate %.

173 of 173 relevant lines covered (100.0%)

2.59 hits per line

Relevant lines Covered
Build:
Build:
173 RELEVANT LINES 173 COVERED LINES
2.59 HITS PER LINE
Source Files on robrap/ARCH-948-fix-ensure-authentication
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
487 robrap/ARCH-948-fix-ensure-authentication fix: refactor ensurePublicOrAuthenticationAndCookies - Protects user against an infinite redirect to login - Refactors ensurePublicOrAuthenticationAndCookies with the below breaking changes. BREAKING CHANGE: The refactor has the following breaki... push 18 Sep 2019 07:57PM UTC robrap travis-ci pending completion  
488 robrap/ARCH-948-fix-ensure-authentication fix: refactor ensurePublicOrAuthenticationAndCookies - Protects user against an infinite redirect to login - Refactors ensurePublicOrAuthenticationAndCookies with the below breaking changes. BREAKING CHANGE: The refactor has the following breaki... Pull #74 18 Sep 2019 07:57PM UTC web-flow travis-ci pending completion  
486 robrap/ARCH-948-fix-ensure-authentication fix: refactor ensurePublicOrAuthenticationAndCookies - Protects user against an infinite redirect to login - Refactors ensurePublicOrAuthenticationAndCookies with the below breaking changes. BREAKING CHANGE: The refactor has the following breaki... Pull #74 18 Sep 2019 07:17PM UTC web-flow travis-ci pending completion  
485 robrap/ARCH-948-fix-ensure-authentication fix: refactor ensurePublicOrAuthenticationAndCookies - Protects user against an infinite redirect to login - Refactors ensurePublicOrAuthenticationAndCookies with the below breaking changes. BREAKING CHANGE: The refactor has the following breaki... push 18 Sep 2019 07:15PM UTC robrap travis-ci pending completion  
484 robrap/ARCH-948-fix-ensure-authentication fix: refactor ensurePublicOrAuthenticationAndCookies - Protects user against an infinite redirect to login - Refactors ensurePublicOrAuthenticationAndCookies with the below breaking changes. BREAKING CHANGE: The refactor has the following breaki... Pull #74 18 Sep 2019 07:03PM UTC web-flow travis-ci pending completion  
483 robrap/ARCH-948-fix-ensure-authentication fix: refactor ensurePublicOrAuthenticationAndCookies - Protects user against an infinite redirect to login - Refactors ensurePublicOrAuthenticationAndCookies with the below breaking changes. BREAKING CHANGE: The refactor has the following breaki... push 18 Sep 2019 07:02PM UTC robrap travis-ci pending completion  
482 robrap/ARCH-948-fix-ensure-authentication fix: refactor ensurePublicOrAuthenticationAndCookies - Protects user against an infinite redirect to login - Refactors ensurePublicOrAuthenticationAndCookies with the below breaking changes. BREAKING CHANGE: The refactor has the following breaki... Pull #74 18 Sep 2019 06:35PM UTC web-flow travis-ci pending completion  
481 robrap/ARCH-948-fix-ensure-authentication fix: refactor ensurePublicOrAuthenticationAndCookies - Protects user against an infinite redirect to login - Refactors ensurePublicOrAuthenticationAndCookies with the below breaking changes. BREAKING CHANGE: The refactor has the following breaki... push 18 Sep 2019 06:35PM UTC robrap travis-ci pending completion  
480 robrap/ARCH-948-fix-ensure-authentication fix: refactor ensurePublicOrAuthenticationAndCookies - Protects user against an infinite redirect to login - Refactors ensurePublicOrAuthenticationAndCookies with the below breaking changes. BREAKING CHANGE: The refactor has the following breaki... Pull #74 18 Sep 2019 06:29PM UTC web-flow travis-ci pending completion  
479 robrap/ARCH-948-fix-ensure-authentication fix: refactor ensurePublicOrAuthenticationAndCookies - Protects user against an infinite redirect to login - Refactors ensurePublicOrAuthenticationAndCookies with the below breaking changes. BREAKING CHANGE: The refactor has the following breaki... push 18 Sep 2019 06:29PM UTC robrap travis-ci pending completion  
See All Builds (519)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc