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

Middleware auth jwt token #2

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Middleware auth jwt token #2

wants to merge 5 commits into from

Conversation

leoraba
Copy link
Contributor

@leoraba leoraba commented Jan 14, 2025

Changes included

  • Auth middleware implemention: Verifies JWT token is valid and formatted accordingly with Overture EGO standards. If token is valid it attachs user's information in the request, otherwise it throws the corresponding error. Related change: Lyric PR #123
  • Open API (Swagger) documentation: Added Bearer authentication to all endpoints.
  • Readme documentation: Updated README documentation

@leoraba leoraba linked an issue Jan 14, 2025 that may be closed by this pull request
@leoraba leoraba force-pushed the feat/auth-jwttoken branch from 4feaf1f to b614328 Compare January 22, 2025 19:54
* @param req
* @returns
*/
export const verifyToken = (req: Request): UserSessionResult => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is called by Lyric middleware to do the auth verification and provide user details

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

Successfully merging this pull request may close these issues.

WW - Built authentication on lyric
1 participant