Ory Kratos Hello world

mobin shaterian
4 min readFeb 9, 2023

how design Role based access control in authorization systems?

https://www.youtube.com/watch?v=lsH2dYh-_3g

what is a Binding? I want to grant on this resource this specific role on this user.

Example : I have family album.I want to grant my brother editor access.he can editor my album. In this example the role is editor and the subject is my brother. The resource is the family album that we talk about it. I want to add administration role to my mother I need to create binding.

Authorization system mostly graph system.

Oathkeeper
kind of types that Oathkeeper support
identical proxy flow

Multi factor authentication

Multi-factor authentication (MFA; encompassing two-factor authentication, or 2FA, along with similar terms) is an electronic authentication method in which a user is granted access to a website or application only after successfully presenting two or more pieces of evidence (or factors) to an authentication mechanism: knowledge (something only the user knows), possession (something only the user has), and inherence (something only the user is). MFA protects user data — which may include personal identification or financial assets — from being accessed by an unauthorized third party that may have been able to discover, for example, a single password.

A third-party authenticator (TPA) app enables two-factor authentication, usually by showing a randomly generated and frequently changing code to use for authentication.

You can enable Time-Based One-Time Password (TOTP) authentication in Ory Identities (Kratos) to allow users to perform 2FA with TOTP apps such as Google Authenticator, LastPass, or FreeOTP.

Run simple Ory Kratos

git clone https://github.com/ory/kratos.git
cd kratos
git checkout <version-you-want>
docker-compose -f quickstart.yml -f quickstart-standalone.yml up --build --force-recreate
# If you have SELinux, run:
docker-compose -f quickstart.yml -f quickstart-selinux.yml -f quickstart-standalone.yml up --build --force-recreate
Ory Kratos
Public ("Browser") API (port 4433)
Admin API (port 4434) - This is only made public so we can test via the CLI.

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

docker-compose -f quickstart.yml -f contrib/quickstart/kratos/cloud/quickstart.yml up --build --force-recreate
docker-compose -f quickstart.yml -f quickstart-postgres.yml up --build --force-recreate

--

--