Has anyone got a working example of this in a springboot app?
- /auth controller where user provides ActiveDirectory credentials (either via basic auth or a POST json) and receives a JWT token if they provided valid AD credentials. No LDIF file should be involved, the Springboot app will verify the credentials against an ldaps://ActiveDirectoryhost:636 endpoint
- /myapi controller which only works if valid JWT token from step1 (above) sent in 'Authorization Bearer' heading
I have not found any example blogs/guides with this setup but I believe this would be a common security setup unless I am mistaken? No jpa/hibernate/persistence/mysql/postgres/H2db connections should be involved All examples I found online either are just JWT, or just LDAP, or use LDIF or use some H2/postgres to store credentials.