Hi! Im searching for any resources on whether it ...
# general
f
Hi! Im searching for any resources on whether it is possible to use do Nonce pattern with Ory products (basically a one time token that is secure to share from app to web client). Can someone hint me whether it is possibly with Hydra / Kratos out of the box?
s
I’m not sure, but maybe this could help you https://www.ory.sh/docs/kratos/passwordless/one-time-code
@chilly-king-10285 is the nonce pattern implemented in any Ory Product?
c
A message from kapa.ai
Yes, OAuth is implemented in Ory's products. Specifically, Ory OAuth2 and OpenID Connect, which is built on top of the widely deployed open-source Ory Hydra Federation Server, is available out of the box in the Ory Network. This solution is used for securely connecting users, applications, and services. It can be used for various needs such as single sign-on (SSO), mobile and third-party application authorization, API access management, server-to-server communication, or federated identity. Ory OAuth2 and OpenID Connect is a Certified OpenID Connect Implementation that meets all requirements set by the OpenID Foundation. It is connected to Ory Identities by default, but it doesn't force you to use a specific user management system, making it a flexible solution if you already have an existing user management system. It's worth noting that Ory is fully compliant with OAuth 2.0 and OpenID Connect. However, Ory recommends using Ory OAuth2 & OpenID for targeted use cases only, such as providing third-party integration with your application. For more information, you can check out the [Ory OAuth 2.0 and OpenID documentation](https://www.ory.sh/federated-identity-management/). Sources: - [Ory OAuth2 & OpenID Connect](https://www.ory.sh/docs/oauth2-oidc) - [Can I use OAuth 2.0 / OpenID Connect?](https://www.ory.sh/docs/security-model#can-i-use-oauth-20--openid-connect)
A message from kapa.ai
Yes, the nonce pattern is implemented in Ory's products. Specifically, it is used in the passwordless authentication process via WebAuthN in Ory Identities. In the passwordless login flow, Ory Identities sends a cryptographic challenge consisting of unique, random data - also known as a nonce - to the frontend app. This nonce is then used in the process of verifying the user's identity. Here are the steps in the passwordless login flow where the nonce is used: 1. In the frontend app, a user enters their ID and clicks the Sign in with security key button, which initiates the passwordless login flow on Ory Identities. 2. Ory Identities sends a cryptographic challenge consisting of unique, random data - also known as a nonce - to the frontend app. 3. The frontend app requests verification of the user's identity by calling the WebAuthn API. WebAuthn automatically opens a dialog in the browser, asking the user to choose an authenticator. 4. WebAuthn delegates identity verification to the browser, passing the challenge and the choice of authenticator to the browser. The browser invokes the chosen authenticator to verify the user's identity. For more information, you can check out the [Ory documentation on how passwordless works](https://www.ory.sh/docs/kratos/passwordless/passwordless#how-does-passwordless-work).
s
@chilly-king-10285 but is possible to use the nonce pattern for mobile apps scenarios?
c
A message from kapa.ai
New message text here