Comments (4)
I can't reproduce this as indicated. If the server only has okta, then no local auth components will render.
I can get a similar error by including both ashirt and okta as valid authentication schemes, and then having a user with only okta auth, plus some additional steps below. We can probably just capture these errors and render a not available message.
steps to generate an error here:
- login with a user that has local auth (alternate: link a local auth with an okta-only user)
- go to account settings/authentication methods
- unlink local auth
- go to the account settings/security page
A refresh "fixes" this -- as noted above, only the components for the current set of auth schemes load. This only changes on refresh, so components will be out of sync until the user hits the refresh page button.
from ashirt-server.
On the backend, there's not a lot we can do without leaking user details. On the frontend, I will be putting up a PR that adds a friendlier error message in situations where the frontend thinks it should advertise multifactor auth, but for whatever reason, it cannot. In these cases, this error message will be displayed:
Multifactor Authentication is not available for this account. Please ensure you have linked ASHIRT local authentication.
(given that this is only a local auth feature this should be a pretty safe message)
from ashirt-server.
The reason that it renders is that the user has a local auth scheme that was setup before the switch to only okta. If you add a local auth scheme in then change the auth schemes to only allow okta, the local auth scheme will still exist in the database and the backend will still return it when the /user
endpoint is requested so it chooses to render that component.
Edit: one solution might be to filter out auth schemes from the database and only return the ones that are currently enabled for the /user
endpoint. This maybe enough to stop the views from rendering.
from ashirt-server.
There are 2 PRs that address this issue.
PR #149 filters users that have auth scheme linked that are no longer supported. This should prevent the above situation from happening in those situatiions.
PR #148 provides a front end solution. Rather than displaying an error icon and vague error message, we instead display a simple message on error that indicates (As noted in a previous comment) that the feature is simply not available for the user.
from ashirt-server.
Related Issues (20)
- Build support discoverable credentials HOT 1
- Permalink redirects to query with invalid uuid HOT 4
- Project-specific variables HOT 4
- Additional editable timestamp property on Evidence HOT 3
- Metadata search breaks when using multiple terms
- Improve Timeline Image Loading HOT 1
- Prefix access keys and secret keys with a known value
- Container name cleanup
- Improvements to logging
- AISHIRT
- Rebuild main and release branches HOT 1
- Allow optional descriptions for the default operation tags #6
- Add dependencies and health checks to docker compose files
- Code viewer (ace-editor) height is stuck at 6 lines
- Decide on the future of the HTTP stack and plan out changes HOT 1
- .env.web file? HOT 2
- Re-evaluate OIDC2 behavior
- S3 URLs not used in /findings HOT 1
- Setup weekly rebuilds of main HOT 1
- Add validation to the create evidence form
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ashirt-server.