-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
807: Authentication for UI in production mode #851
807: Authentication for UI in production mode #851
Conversation
bf05e83
to
1190622
Compare
4b99c87
to
6ef89e1
Compare
1190622
to
0cfc31b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works well with screen reader and zooms nicely up to 400 zoom (at least on big monitor)!
Didn't check the actual signup functionality (I guess I can't without AD being setup for me), but I'll trust that Amplify is doing its job.
frontend/src/AuthenticatedApp.tsx
Outdated
}, | ||
formFields: { | ||
forgotPassword: { | ||
username: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually we can! But then we should probably use the same placeholder for all the Username fields, as they will always be an email address.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following our teams discussion, I'm going to use "Email address" as label, and an example placeholder to reduce cognitive load / act as a visual hint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice cleanup!
0cfc31b
to
85ce32d
Compare
* Reinstate auth stack in CDK app, but without Azure as IdP * Add login to UI in prod mode only * Add authentication header to UI requests in prod mode only
* Reinstate auth stack in CDK app, but without Azure as IdP * Add login to UI in prod mode only * Add authentication header to UI requests in prod mode only
* Reinstate auth stack in CDK app, but without Azure as IdP * Add login to UI in prod mode only * Add authentication header to UI requests in prod mode only
* Reinstate auth stack in CDK app, but without Azure as IdP * Add login to UI in prod mode only * Add authentication header to UI requests in prod mode only
* Reinstate auth stack in CDK app, but without Azure as IdP * Add login to UI in prod mode only * Add authentication header to UI requests in prod mode only
* Reinstate auth stack in CDK app, but without Azure as IdP * Add login to UI in prod mode only * Add authentication header to UI requests in prod mode only
* Reinstate auth stack in CDK app, but without Azure as IdP * Add login to UI in prod mode only * Add authentication header to UI requests in prod mode only
* Reinstate auth stack in CDK app, but without Azure as IdP * Add login to UI in prod mode only * Add authentication header to UI requests in prod mode only
* Reinstate auth stack in CDK app, but without Azure as IdP * Add login to UI in prod mode only * Add authentication header to UI requests in prod mode only
* Reinstate auth stack in CDK app, but without Azure as IdP * Add login to UI in prod mode only * Add authentication header to UI requests in prod mode only
* Reinstate auth stack in CDK app, but without Azure as IdP * Add login to UI in prod mode only * Add authentication header to UI requests in prod mode only
* Reinstate auth stack in CDK app, but without Azure as IdP * Add login to UI in prod mode only * Add authentication header to UI requests in prod mode only
* Reinstate auth stack in CDK app, but without Azure as IdP * Add login to UI in prod mode only * Add authentication header to UI requests in prod mode only
* Reinstate auth stack in CDK app, but without Azure as IdP * Add login to UI in prod mode only * Add authentication header to UI requests in prod mode only
* Reinstate auth stack in CDK app, but without Azure as IdP * Add login to UI in prod mode only * Add authentication header to UI requests in prod mode only
* Reinstate auth stack in CDK app, but without Azure as IdP * Add login to UI in prod mode only * Add authentication header to UI requests in prod mode only
Description
Adds auth to the UI, in production mode.
When running the UI in dev mode (
npm run dev
) you shouldn't see the login.When running in preview mode (
npm run build && npm run preview
) you should see the login.Resolves #807
Screenshots
Normal Zoom:
![image](https://private-user-images.githubusercontent.com/15246391/309267327-a07be184-d03b-440d-9898-82697d0e7c19.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxODI5MDgsIm5iZiI6MTczOTE4MjYwOCwicGF0aCI6Ii8xNTI0NjM5MS8zMDkyNjczMjctYTA3YmUxODQtZDAzYi00NDBkLTk4OTgtODI2OTdkMGU3YzE5LnBuZz9YLUFtei1BbGdvc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GVhZGVycz1ob3N0In0.qnIyQSz7gYNITF4sFPTuIiXA0zZNLCfaQ_H4jqzvOxs)
200% Zoom:
![image](https://private-user-images.githubusercontent.com/15246391/309267693-160d23ed-9cf7-4e8f-b8bd-e6ac6534b0a0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxODI5MDgsIm5iZiI6MTczOTE4MjYwOCwicGF0aCI6Ii8xNTI0NjM5MS8zMDkyNjc2OTMtMTYwZDIzZWQtOWNmNy00ZThmLWI4YmQtZTZhYzY1MzRiMGEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDEwMTY0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY0ZTIxODZlNDg3NTcwMjA4YjQ2YjdkZTIwNjFlY2QzYjg5NjQxMTdlNjVlNjY1MjVlYWU2ODNiNjE5YmM5NzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.nkHeKFzyyq9ZbE6qOMfDUbAB-seuWQJl35q-rwKrKX8)
Notes
Checklist
Have you done the following?