Skip to content

Fix: Resolve Issue #9 [Authentication System] and #12 [CORS Error]#11

Open
Aradhya2708 wants to merge 5 commits intodevlup-labs:mainfrom
Aradhya2708:main
Open

Fix: Resolve Issue #9 [Authentication System] and #12 [CORS Error]#11
Aradhya2708 wants to merge 5 commits intodevlup-labs:mainfrom
Aradhya2708:main

Conversation

@Aradhya2708
Copy link
Member

@Aradhya2708 Aradhya2708 commented Mar 18, 2025

Fix: Resolve Issue #9 [Authentication System] and #12 [CORS Error]

Created a basic working LDAP client system for User Authentication

  • Used Forumsys Test Server for testing LDAP client
  • Integrated Login Page for LDAP auth
  • Fixed CORS Error

Example Correct Usage (testing):

  • Username: einstein
  • Password: password

@Aradhya2708 Aradhya2708 changed the title Fix: Resolve Issue #9 [Authentication System] Fix: Resolve Issue #9 [Authentication System] and #12 [CORS Error] Mar 18, 2025
return
}

defer client.Close()
Copy link
Member

Choose a reason for hiding this comment

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

I see this problematic, I have checked it, this will be nice for single user system, but if concurrent req are made and all try to close the same client(here global client), so from 2nd req onwards they are processing this on closed client.

What you can do , create new client for each request inside that function and then defer closing it. Or something else.

Otherwise it is nice.

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.

2 participants