witty-orange-14106
06/22/2024, 9:45 PMchilly-king-10285
06/22/2024, 9:45 PMchilly-king-10285
06/22/2024, 9:46 PMcredentials
object of the associated Identity. Specifically, an id
with the value totp
is added under password
. Here's an example of what the credentials
object might look like: json credentials: password: id: totp identifiers: - 802471b9-06f5-49d4-a88d-5e7d6bcfed22 config: totp_url: <otpauth://totp/Example:[[email> protected]](<https://www.ory.sh/cdn-cgi/l/email-protection>)?secret=JBSWY3DPEHPK3PXP&issuer=Example
The totp_url
contains the pre-shared key and some additional meta-information. If these entries exist in the credentials
object for a user, it means that the user has TOTP enabled. However, the exact method to check this would depend on how you're interacting with Ory. If you're using the Ory CLI, you might need to use a command to fetch the identity configuration and check the credentials
object. If you're using the Ory API, you might need to make a request to an endpoint that returns the identity configuration. Please note that this is a general explanation based on the information provided in the [knowledge source](https://www.ory.sh/docs/kratos/mfa/totp#identity-credentials). The exact details might vary depending on your specific setup and configuration.witty-orange-14106
06/22/2024, 9:47 PMchilly-king-10285
06/22/2024, 9:47 PMchilly-king-10285
06/22/2024, 9:48 PMcredentials
object of the associated Identity. Specifically, an id
with the value totp
is added under password
. Here's an example of what the credentials
object might look like: json credentials: password: id: totp identifiers: - 802471b9-06f5-49d4-a88d-5e7d6bcfed22 config: totp_url: <otpauth://totp/Example:[[email> protected]](<https://www.ory.sh/cdn-cgi/l/email-protection>)?secret=JBSWY3DPEHPK3PXP&issuer=Example
The totp_url
contains the pre-shared key and some additional meta-information. If these entries exist in the credentials
object for a user, it means that the user has TOTP enabled. However, the exact method to check this would depend on how you're interacting with Ory. If you're using the Ory CLI, you might need to use a command to fetch the identity configuration and check the credentials
object. If you're using the Ory API, you might need to make a request to an endpoint that returns the identity configuration. Please note that this is a general explanation based on the information provided in the [knowledge source](https://www.ory.sh/docs/kratos/mfa/totp#identity-credentials). The exact details might vary depending on your specific setup and configuration.witty-orange-14106
06/22/2024, 9:51 PMchilly-king-10285
06/22/2024, 9:51 PMchilly-king-10285
06/22/2024, 9:51 PMcredentials
object in the response. Unfortunately, the provided knowledge sources do not include specific details or examples of the API endpoints you would need to use to fetch a user's identity. However, typically in REST APIs, there would be a GET endpoint such as /identities/{id}
where {id}
is the identifier of the user whose information you want to fetch. The response from such an endpoint would typically include the credentials
object. Here's an example of what the credentials
object might look like when TOTP is enabled: json credentials: password: id: totp identifiers: - 802471b9-06f5-49d4-a88d-5e7d6bcfed22 config: totp_url: <otpauth://totp/Example:[[email> protected]](<https://www.ory.sh/cdn-cgi/l/email-protection>)?secret=JBSWY3DPEHPK3PXP&issuer=Example
If these entries exist in the credentials
object for a user, it means that the user has TOTP enabled. For the exact API endpoint and method to use, please refer to the Ory API documentation or the API reference provided in your Ory setup.witty-orange-14106
06/22/2024, 9:54 PMchilly-king-10285
06/22/2024, 9:54 PMchilly-king-10285
06/22/2024, 9:55 PM/sessions/whoami
endpoint in Ory Kratos is used to check the session status of a user. It returns information about the session, including the session's ID, its active status, expiration time, and the associated identity. However, it does not return the credentials
object which contains information about the authentication methods enabled for the user, such as TOTP. In the response you've shared, there's no credentials
object, which is expected for the /sessions/whoami
endpoint. The authentication_methods
array indicates the methods used for the current session, but it doesn't necessarily reflect all the methods enabled for the user. To check if a user has TOTP enabled, you would typically need to fetch the user's identity, which should include the credentials
object. Unfortunately, the provided knowledge sources do not include specific details or examples of the API endpoints you would need to use to fetch a user's identity. For the exact API endpoint and method to use, please refer to the Ory API documentation or the API reference provided in your Ory setup.witty-orange-14106
06/22/2024, 10:09 PMsession:
lifespan: "1h"
whoami:
required_aal: highest_available
and these are my methods for reference
methods:
oidc:
enabled: false
webauthn:
enabled: false
totp:
enabled: true
code:
passwordless_enabled: true
enabled: true
config:
lifespan: 15m
chilly-king-10285
06/22/2024, 10:09 PMchilly-king-10285
06/22/2024, 10:09 PMcredentials
object of the associated Identity. Specifically, an id
with the value totp
is added under password
. Here's an example of what the credentials
object might look like: json credentials: password: id: totp identifiers: - 802471b9-06f5-49d4-a88d-5e7d6bcfed22 config: totp_url: <otpauth://totp/Example:[[email> protected]](<https://www.ory.sh/cdn-cgi/l/email-protection>)?secret=JBSWY3DPEHPK3PXP&issuer=Example
The totp_url
contains the pre-shared key and some additional meta-information. If these entries exist in the credentials
object for a user, it means that the user has TOTP enabled. However, the exact method to check this would depend on how you're interacting with Ory. If you're using the Ory CLI, you might need to use a command to fetch the identity configuration and check the credentials
object. If you're using the Ory API, you might need to make a request to an endpoint that returns the identity configuration. Please note that this is a general explanation based on the information provided in the [knowledge source](https://www.ory.sh/docs/kratos/mfa/totp#identity-credentials). The exact details might vary depending on your specific setup and configuration. Unfortunately, the provided knowledge sources do not include specific details or examples of the API endpoints you would need to use to fetch a user's identity. For the exact API endpoint and method to use, please refer to the Ory API documentation or the API reference provided in your Ory setup.