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

Backend - Need api to generate Token without using put to user #20062

Open
chirag-madlani opened this issue Mar 4, 2025 · 0 comments
Open

Backend - Need api to generate Token without using put to user #20062

chirag-madlani opened this issue Mar 4, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@chirag-madlani
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

  • Currently, to generate a new Token we need to Use a PUT call with all the user information which seems complicated just to create a Token

e.g. /api/v1/users -- PUT

{"isAdmin":false,"name":"ingestion-bot","displayName":"ingestion-bot","email":"[email protected]","isBot":true,"authenticationMechanism":{"config":{"JWTTokenExpiry":"Unlimited"},"authType":"JWT"},"botName":"ingestion-bot"}

Describe the solution you'd like
A clear and concise description of what you want to happen.

  • To provide a endpoint to create token just like /revokeToken with just relevant details
    i.e. /api/v1/users/generateToken with payload
id: <USER_ID>,
authenticationMechanism: {
    "config": {
        "JWTTokenExpiry": "OneHour"
    },
    "authType": "JWT"
}

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants