Once validated with Okta, how do I obtain the username and other data of the signed user?

Once validated with Okta, how do I obtain the username and other data of the signed user?

What type of application are we talking about here? OpenID Connect? SAML?