some-painting-28549
06/08/2024, 5:02 PMchilly-king-10285
06/08/2024, 5:02 PMchilly-king-10285
06/08/2024, 5:03 PM/sessions/whoami endpoint. Here's an example of how you might do this using cURL: bash curl 'https://{project.slug}.<http://projects.oryapis.com/sessions/whoami|projects.oryapis.com/sessions/whoami>' \ -H 'Accept: application/json' \ -H 'Cookie: ory_kratos_session=MTYzNDIyNzEzN3xEdi1CQkFFQ180SUFBUkFCRUFBQVJfLUNBQUVHYzNSeWFXNW5EQThBRFhObGMzTnBiMjVmZEc5clpXNEdjM1J5YVc1bkRDSUFJRTFDYWtvME5VNVlaVWxvYVZWeWJrUnZhSEF4YmxSV2VVRlhNMWwxVlVGenxXpsk2cL21Dclk3nCoXV41N6bFxvVJSt7CeICy_815Aw==' In this example, replace {project.slug} with your project's slug and ory_kratos_session with your session cookie. Please note that this is a general guide and the exact steps may vary depending on your specific use case and the Ory product you're using. For more detailed instructions, please refer to the [Ory documentation](https://www.ory.sh/docs/kratos/session-management/overview#using-ory-session-cookie).some-painting-28549
06/08/2024, 5:05 PMchilly-king-10285
06/08/2024, 5:05 PMchilly-king-10285
06/08/2024, 5:06 PMsetOAuth2Client operation, you must be authenticated by means of the oryAccessToken method. On the other hand, operations like getOAuth2Client and introspectOAuth2Token do not require authentication. Please refer to the [Ory API Reference](https://www.ory.sh/docs/reference/api) and [Hydra API Reference](https://www.ory.sh/docs/hydra/reference/api) for more details on how to use OAuth 2.0 with Ory. As for OAuth 1.0, it is not mentioned in the provided knowledge sources, so it's safe to assume that Ory does not support it. OAuth 2.0 is a more secure and flexible update to OAuth 1.0, so it's recommended to use OAuth 2.0 if possible.some-painting-28549
06/08/2024, 5:24 PM