Okta beat expectations in its fiscal second quarter as AI agent identity security emerged as a new priority in enterprise software spending.