File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
play2-oauth2-provider/src/main/scala/scalaoauth2/provider Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ trait OAuth2Provider extends OAuth2BaseProvider {
114114 TokenEndpoint .handleRequest(request, dataHandler) match {
115115 case Left (e) if e.statusCode == 400 => BadRequest (responseOAuthErrorJson(e)).withHeaders(responseOAuthErrorHeader(e))
116116 case Left (e) if e.statusCode == 401 => Unauthorized (responseOAuthErrorJson(e)).withHeaders(responseOAuthErrorHeader(e))
117- case Right (r) => Ok (Json .toJson(responseAccessToken(r)))
117+ case Right (r) => Ok (Json .toJson(responseAccessToken(r))).withHeaders( " Cache-Control " -> " no-store " , " Pragma " -> " no-cache " )
118118 }
119119 }
120120
@@ -185,7 +185,7 @@ trait OAuth2AsyncProvider extends OAuth2BaseProvider {
185185 TokenEndpoint .handleRequest(request, dataHandler) match {
186186 case Left (e) if e.statusCode == 400 => Future .successful(BadRequest (responseOAuthErrorJson(e)).withHeaders(responseOAuthErrorHeader(e)))
187187 case Left (e) if e.statusCode == 401 => Future .successful(Unauthorized (responseOAuthErrorJson(e)).withHeaders(responseOAuthErrorHeader(e)))
188- case Right (r) => Future .successful(Ok (Json .toJson(responseAccessToken(r))))
188+ case Right (r) => Future .successful(Ok (Json .toJson(responseAccessToken(r))).withHeaders( " Cache-Control " -> " no-store " , " Pragma " -> " no-cache " ) )
189189 }
190190 }
191191
You can’t perform that action at this time.
0 commit comments