Skip to content
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

Bootstrapping Auth #1

Open
jcii opened this issue Feb 27, 2021 · 0 comments
Open

Bootstrapping Auth #1

jcii opened this issue Feb 27, 2021 · 0 comments

Comments

@jcii
Copy link
Member

jcii commented Feb 27, 2021

so this is the react repo. It has the swagger-generated client committed into autogen/clients/machete-api-axios-client/ for now. Eventually I'll get around to have cicd build & package it and add it to npm. #mythicalFuture.

There is a not-quite-working material-ui table here: https://github.com/SavageLearning/machete-react-ui/blob/master/src/components/employers/EmployerTable.tsx

It has a hook using the axios-client library. I see it making the correct call in browser's dev-tools, but I haven't addressed authentication yet.

Chaim has a single-page login form (in React) here: https://github.com/SavageLearning/Machete/blob/master/Machete.Web/Identity/index.html

It's a self-contained thing that does the needful. You can steal from it and get auth working in the new repo.
We may also need to modify the CORS settings on the server. It may work, or not. have to test. (the backend settings in code: https://github.com/SavageLearning/Machete/search?q=cors)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant