package com.github.noxan.aves.auth.storage;

import java.util.HashMap;
import java.util.Map;

public class InMemoryUsernamePasswordStorage {
    private Map<String, String> users;

    public InMemoryUsernamePasswordStorage() {
        users = new HashMap<String, String>();
    }

    public void addUser(String username, String password) {
        users.put(username, password);
    }
}

@@ -87,16 +87,86 @@
 l.Map;%0A%0A
+import com.github.noxan.aves.auth.accessor.UsernamePasswordAccessor;%0A%0A
 public c
@@ -449,11 +449,232 @@
 );%0A    %7D
+%0A%0A    public String requestUser(UsernamePasswordAccessor accessor) %7B%0A        if (accessor.checkPassword(users.get(accessor.getUsername()))) %7B%0A            return accessor.getUsername();%0A        %7D%0A        return null;%0A    %7D
 %0A%7D%0A

implement requestUser method in inmemory storage to check if user exists and try to login