Provide JSON in auth/cookie as in auth/user

Description

A common scenario when using EntryStore is that you want to log in and immediately afterwards get information on the home context, preferred language and more. Currently that information is available from the auth/user resource. Hence, currently you need to first sign in and then do another request.

A more efficient approach is to provide the same information in the response body after successful authorization, that is, when doing a POST to auth/cookie.

Environment

None

Activity

Show:
Hannes Ebner
March 7, 2016, 11:34 AM

Currently there is no simple way to share information between resources, i.e. UserResource and CookieResource, since there is information that is not shared between threads, like the current REST context etc. This makes it quite complicated to produce code that can be shared between resources, so I mark this with "Won't fix".

Won't Fix

Assignee

Hannes Ebner

Reporter

Matthias Palmér

Labels

None

Components

Fix versions

Priority

Normal