We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
Is there a way to redirect the headers received from a callback originating from a OAuth Server?
I have tried basic redirection, and also using ReDirector + Extractor, but they all strip away the headers & cookies as they redirect....
I have resorted to encoding the same as query values. Is there a better and more secure way than below?
Redirector redirector = new Redirector(getContext(), "", Redirector.MODE_CLIENT_TEMPORARY) { @Override public void handle(Request request, Response response) { final String identifier = request.getAttributes().get("identifier").toString(); final String accessToken = request.getAttributes().get("accessToken").toString(); //request.getCookies().add("identifier", identifier); final String redirectUri = request.getResourceRef().getQueryAsForm().getFirstValue("redirectUri"); final Reference reference = new Reference(redirectUri); reference.addQueryParameter("identifier", identifier); reference.addQueryParameter("accessToken", accessToken); setTargetTemplate(reference.getIdentifier()); super.handle(request, response); } };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
Is there a way to redirect the headers received from a callback originating from a OAuth Server?
I have tried basic redirection, and also using ReDirector + Extractor, but they all strip away the headers & cookies as they redirect....
I have resorted to encoding the same as query values. Is there a better and more secure way than below?
The text was updated successfully, but these errors were encountered: