Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Don't hard code /login redirect #110

Closed
jaxoncreed opened this issue Jul 25, 2019 · 1 comment
Closed

Don't hard code /login redirect #110

jaxoncreed opened this issue Jul 25, 2019 · 1 comment
Labels
invalid This doesn't seem right

Comments

@jaxoncreed
Copy link
Contributor

I wanted a UI where you stay at the same domain until you log in, but I can't do that now :(

@james-martin-jd
Copy link
Contributor

There are two layouts used in the generator application, public and private layout.

The withAuthorization component is an optional component that enforces an authorized page. For example, if you have a dashboard that makes no sense to view without a logged in user, you can use the withAuthorization to block the user from viewing it without authorization.

This control is exposed in the generator via the layouts. The private-layout is a page template that authorized pages can use which includes the withAuthorization control, whereas public-layout is a page template that anyone can view whether they are logged in or not. Examples of public pages in the generator are the login page and /404, whereas the profile and welcome pages (and now game) are using the private layout since you need to be authenticated to have any real sort of interaction with those pages.

@james-martin-jd james-martin-jd added the invalid This doesn't seem right label Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants