Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Add Auth HOC to wrap authorized pages #818

Merged
merged 3 commits into from
May 27, 2020
Merged

Add Auth HOC to wrap authorized pages #818

merged 3 commits into from
May 27, 2020

Conversation

rohithbalaji123
Copy link
Member

Part of #612

New Behavior

Description

Add withPageAuth HOC to wrap auth protected pages. It currently returns a 404 page when the user isn't authorized to view the page and displays the wrapped page if authorized.

@rohithbalaji123 rohithbalaji123 added the enhancement New feature or request label May 26, 2020
@rohithbalaji123 rohithbalaji123 self-assigned this May 26, 2020
@codecov
Copy link

codecov bot commented May 26, 2020

Codecov Report

Merging #818 into master will decrease coverage by 0.48%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #818      +/-   ##
==========================================
- Coverage   50.31%   49.82%   -0.49%     
==========================================
  Files         122      123       +1     
  Lines        2564     2589      +25     
  Branches      143      147       +4     
==========================================
  Hits         1290     1290              
- Misses       1224     1249      +25     
  Partials       50       50              
Flag Coverage Δ
#golang 70.45% <ø> (ø)
#typescript 23.88% <0.00%> (-0.54%) ⬇️
Impacted Files Coverage Δ
frontend/src/component/hoc/withPageAuth.tsx 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 58d0da9...dd90ffa. Read the comment docs.

@rohithbalaji123 rohithbalaji123 changed the title Add auth hoc Add Auth HOC to wrap authorized pages May 26, 2020
@magicoder10 magicoder10 added this to the 05/25 - 06-01 milestone May 27, 2020
@magicoder10
Copy link
Member

Please address the small comment I left.

@rohithbalaji123 rohithbalaji123 merged commit 289007a into master May 27, 2020
@rohithbalaji123 rohithbalaji123 deleted the auth-hoc branch May 27, 2020 10:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants