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

feat: add session creation endpoint #1969

Merged
merged 4 commits into from
Nov 12, 2024
Merged

feat: add session creation endpoint #1969

merged 4 commits into from
Nov 12, 2024

Conversation

FreddyDevelop
Copy link
Contributor

Description

Add a session creation endpoint in the admin API.

@bjoern-m
Copy link
Contributor

bjoern-m commented Nov 7, 2024

Shall we add a config parameter to enable or disable the new endpoint for security reasons?

backend/handler/session_admin.go Outdated Show resolved Hide resolved
backend/dto/admin/session.go Outdated Show resolved Hide resolved
@FreddyDevelop
Copy link
Contributor Author

Shall we add a config parameter to enable or disable the new endpoint for security reasons?

I don't think that we need a config parameter for this, because when an attacker wants to have control over an account and has access to the admin API he can just add his authentication factor (currently he can just add an email address) to the user and he can login and can remove the email address from the profile or even from the admin API. So the session endpoint only makes it easier for an attacker.

@FreddyDevelop FreddyDevelop merged commit b643256 into main Nov 12, 2024
8 checks passed
@FreddyDevelop FreddyDevelop deleted the feat-token-endpoint branch November 12, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Recently closed
Development

Successfully merging this pull request may close these issues.

3 participants