You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently trying to interface a custom-made module that utilizes Spring Security for authentication, as part of a custom OAuth2 solution.
It is internally exposing a /login route on the server via a RestController, using @GetMapping inside the module. If this can help you, it extends AbstractAuthenticationProcessingFilter somewhere with the parameter "/login".
My problem is that I can't seem to be able to access this method from the 8080 port that exposes both the API and the Angular front-end. I am forced to use a /login GET callback for OAuth by the module, but everytime I try to use it I am redirected to the frontend, NOT the backend.
Getting the base URL via the provided applicationConfigService.getEndpointFor method still redirects to the same base /login URL, and it is still served by Angular.
This is probably very simple - I just got introduced to the project using JHipster. Though I did read all the documentation multiple times, this could indicate a need for more clarifications in the documentation. If it is the case, I apologize for the confusion.
EDIT: It looks like it could be related to this issue: #22843
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm currently trying to interface a custom-made module that utilizes Spring Security for authentication, as part of a custom OAuth2 solution.
It is internally exposing a
/login
route on the server via aRestController
, using@GetMapping
inside the module. If this can help you, it extendsAbstractAuthenticationProcessingFilter
somewhere with the parameter"/login"
.My problem is that I can't seem to be able to access this method from the 8080 port that exposes both the API and the Angular front-end. I am forced to use a
/login
GET callback for OAuth by the module, but everytime I try to use it I am redirected to the frontend, NOT the backend.Getting the base URL via the provided
applicationConfigService.getEndpointFor
method still redirects to the same base /login URL, and it is still served by Angular.This is probably very simple - I just got introduced to the project using JHipster. Though I did read all the documentation multiple times, this could indicate a need for more clarifications in the documentation. If it is the case, I apologize for the confusion.
EDIT: It looks like it could be related to this issue: #22843
Beta Was this translation helpful? Give feedback.
All reactions