Token service handling invalid resource (#12790)
Token service handling invalid resource (#12790)

This commit updates the way token service handles invalid resource, for
example a resource without projectname.
It will clear the requested access instead of returning 500 error.

Signed-off-by: Daniel Jiang <b8e1ca884a84f218767196db52915b5edb9f310e@vmware.com>
reasonerjt/harbor,wy65701436/harbor,wy65701436/harbor,reasonerjt/harbor,reasonerjt/harbor,reasonerjt/harbor,reasonerjt/harbor,wy65701436/harbor,wy65701436/harbor,wy65701436/harbor,reasonerjt/harbor,wy65701436/harbor