package com.ytpm.auth;

import com.ytpm.general.Result;

import java.security.Principal;
import java.util.Map;

public interface AuthService {
    /**
     * token颁布
     *
     * @param principal
     * @param parameters
     * @return
     */
    Result<Map<String, Object>> createAccessToken(Principal principal, Map<String, String> parameters);

    /**
     * 登出
     *
     * @param accessToken
     * @return
     */
    Result logout(String accessToken);
}
