oltu-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders <innocentl...@gmail.com>
Subject [Implicit Grant Flow] The wey to response error
Date Thu, 17 Dec 2015 06:00:24 GMT
Hi,

I'm using Oltu version 1.0.1.
According to OAuth 2.0 spec, I need to put error parameter in HTTP
fragment, like below:

HTTP/1.1 302 Found
Location: https://client.example.com/cb#error=access_denied&state=xyz

But I can't use OAuthASResponse.errorResponse() to put error parameter
in fragment.

OAuthASResponse.errorResponse(HttpServletResponse.SC_FOUND)
                            .location(oauthReq.getRedirectURI())
                            .setError(OAuthError.CodeResponse.ACCESS_DENIED)
                            .setState(oauthReq.getState())
                            .buildQueryMessage();

Is there any way to do this?
Thank you for any comments.
-- 

Anderson

Mime
View raw message