Thruway\Session::getMetaInfo PHP 메소드

getMetaInfo() 공개 메소드

Get meta info
public getMetaInfo ( ) : array
리턴 array
    public function getMetaInfo()
    {
        if ($this->getAuthenticationDetails() instanceof AuthenticationDetails) {
            $authId = $this->getAuthenticationDetails()->getAuthId();
            $authMethod = $this->getAuthenticationDetails()->getAuthMethod();
            $authRole = $this->getAuthenticationDetails()->getAuthRole();
            $authRoles = $this->getAuthenticationDetails()->getAuthRoles();
        } else {
            $authId = "anonymous";
            $authMethod = "anonymous";
            $authRole = "anonymous";
            $authRoles = [];
        }
        return ["realm" => $this->getRealm()->getRealmName(), "authprovider" => null, "authid" => $authId, "authrole" => $authRole, "authroles" => $authRoles, "authmethod" => $authMethod, "session" => $this->getSessionId(), "role_features" => $this->getRoleFeatures()];
    }