robe-admin/src/main/java/io/robe/admin/resources/AuthResource.java
@Path("profile")
    @GET
    @UnitOfWork(readOnly = true, cacheMode = GET, flushMode = FlushMode.MANUAL)
    public User getProfile(@RobeAuth Credentials credentials) {
        Optional<User> user = userDao.findByUsername(credentials.getUsername());
        if (!user.isPresent()) {
            throw new WebApplicationException(Response.Status.UNAUTHORIZED);
        } else
            return user.get();
    }
@Path("profile")
    @GET
    @UnitOfWork(readOnly = true, cacheMode = GET, flushMode = FlushMode.MANUAL)
    public User getProfile(@RobeAuth Credentials credentials) {
        Optional<User> user = userDao.findByUsername(credentials.getUsername());
        if (!user.isPresent()) {
            throw new WebApplicationException(Response.Status.UNAUTHORIZED);
        } else
            return user.get();
    }
User Information Returns
<p>
Status Code:
UNAUTHORIZED no have authentication.

@param credentials injected by {@link RobeAuth} annotation for authentication.
@return {@link User}
@throws Exception for not found user