-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feat/t 100 keycloak authentication #104
base: main
Are you sure you want to change the base?
Conversation
1a5f96a
to
ce1d7de
Compare
412a50d
to
4fed944
Compare
d76f52f
to
4ec723a
Compare
78f0e73
to
7c7a4ee
Compare
7c7a4ee
to
c6fab43
Compare
226d2dc
to
ec761d7
Compare
133c8e8
to
dbecc0d
Compare
df.to_sql("shots", engine, if_exists="append", index=False) | ||
return shot_data | ||
except Exception as e: | ||
raise HTTPException(status_code=400, detail=f"Error:{str(e)}") |
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.
Why are you masking the real exception and returning an HTTPException? Could this not become hard to debug if the exception is actually coming from pandas?
df.to_sql("signals", engine, if_exists="append", index=False) | ||
return signal_data | ||
except Exception as e: | ||
raise HTTPException(status_code=400, detail=f"Error:{str(e)}") |
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.
and here
df.to_sql("cpf_summary", engine, if_exists="append", index=False) | ||
return cpf_data | ||
except Exception as e: | ||
raise (HTTPException(status_code=400, detail=f"Error:{str(e)}")) |
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.
and here
A few questions from me:
|
|
This offers authentication/authorisation of fair-mast post api end based on user role (fair-mast-admin).
Below are demos.
image
image
image