Вход через Aveelon ID
Добавьте кнопку «Войти через Aveelon» на свой сайт или в приложение. Люди входят одним аккаунтом, а вы получаете только то, что они разрешат. Стандарт — OAuth 2.0 и OpenID Connect.
Открыть кабинет разработчика Как подключитьНачало
- Войдите в кабинет разработчика своим Aveelon ID. Разработчиком может быть человек от 18 лет, ИП или компания.
- Создайте приложение: название, сайт, ссылка на политику конфиденциальности вашего приложения, контакт, адреса возврата (Redirect URI, только https; http — только для localhost).
- Сохраните Client ID и Client Secret. Секрет показывается один раз и хранится только на вашем сервере.
- Подключите вход по шагам ниже и проверьте его сами и с тестировщиками.
- Отправьте на проверку права, которые нужны (почта, телефон), — каждое отдельно, с объяснением.
https://id.aveelon.com/.well-known/openid-configurationВход по шагам (Authorization Code + PKCE)
1. Отправьте человека на страницу входа:
https://id.aveelon.com/api/oauth2/authorize
?response_type=code
&client_id=pa_XXXXXXXXXXXXXXXX
&redirect_uri=https://your.site/auth/aveelon/callback
&scope=openid%20profile
&state=СЛУЧАЙНАЯ_СТРОКА
&code_challenge=BASE64URL(SHA256(code_verifier))
&code_challenge_method=S256
2. Человек входит и видит экран согласия: ваше приложение, разработчик, ссылки на ваши документы и список прав. После «Разрешить» Aveelon возвращает его на redirect_uri с code и state. Проверьте, что state тот же.
3. Обменяйте код на токены (с вашего сервера):
curl -u pa_XXXXXXXXXXXXXXXX:CLIENT_SECRET https://id.aveelon.com/api/oauth2/token \
-d grant_type=authorization_code \
-d code=КОД \
-d redirect_uri=https://your.site/auth/aveelon/callback \
-d code_verifier=ИСХОДНЫЙ_code_verifier
Мобильные и одностраничные приложения (без секрета) передают только client_id и code_verifier — PKCE для них обязателен.
4. Данные человека — в id_token (JWT, подпись RS256, ключи: /api/oauth2/jwks) или по запросу:
curl -H "Authorization: Bearer ACCESS_TOKEN" https://id.aveelon.com/api/oauth2/userinfo
{ "sub": "…", "name": "Айгерим Касымова", "preferred_username": "aigerim", "picture": "https://…" }
sub — постоянный идентификатор человека в Aveelon. Связывайте аккаунты по нему, а не по почте.
Права
| Право | Что получает приложение | Как получить |
|---|---|---|
openid | sub — идентификатор | сразу |
profile | имя, @ник, фото профиля | сразу |
email | почта и подтверждена ли она | после проверки Aveelon |
phone | номер телефона | после проверки Aveelon |
Публикации, комментарии и директ — в следующей версии. Директ будет доступен только проверенным ИП и ТОО и только для переписки бизнеса со своими клиентами.
Режим разработки и проверка
- Режим разработки. Новое приложение работает сразу, но только для вас и до 20 тестировщиков (добавьте их в кабинете по @нику или почте). Остальные вернутся к вам с ошибкой
access_denied. - Проверка приложения. Мы проверяем название, сайт, политику конфиденциальности и адреса возврата — обычно до двух рабочих дней. После одобрения войти может любой человек.
- Проверка прав. Почту и телефон вы запрашиваете отдельно и объясняете, зачем они нужны. Пока право на проверке, им пользуетесь только вы и тестировщики. Отказ приходит с причиной — исправьте и запросите снова.
- Если приложение попросит неодобренное право, человек вернётся к вам с ошибкой
access_denied.
Дети до 14 лет
- Ребёнок подключает приложение только после разрешения родителя: на экране согласия он получает ссылку для родителя, родитель открывает её и нажимает «Разрешить».
- Почта и телефон ребёнка не передаются никогда, даже если право одобрено.
- В ответе есть признак
"under_14": true. Таким пользователям нельзя показывать рекламу по интересам и строить их профили.
Токены
| Токен | Срок |
|---|---|
| код авторизации | 5 минут, один раз |
| access token | 10 минут |
| refresh token | 30 дней, только приложениям с секретом; при обновлении выдаётся новый |
Человек может отключить ваше приложение в любой момент: Aveelon ID → «Подключённые приложения». После этого токены перестают работать, а данные, полученные из Aveelon, нужно удалить в течение 30 дней. Отзыв токена: POST /api/oauth2/revoke.
Правила
- Запрашивайте только права, без которых приложение не работает, и объясняйте пользователю зачем.
- Не продавайте и не передавайте данные пользователей, не используйте их для рекламы вне приложения.
- Client Secret — только на вашем сервере. Утёк — перевыпустите в кабинете.
- Кнопка «Войти через Aveelon» и логотип — только для входа; не выдавайте приложение за продукт Aveelon.
Полные «Условия для разработчиков» и «Правила платформы» публикуются на legal.aveelon.com. Вопросы: info@aveelon.com.
Log in with Aveelon ID
Add a «Log in with Aveelon» button to your website or app. People sign in with one account, and you get only what they allow. Built on OAuth 2.0 and OpenID Connect.
Open the developer dashboard How to connectStart
- Sign in to the developer dashboard with your Aveelon ID. Developers are people aged 18+, individual entrepreneurs or companies.
- Create an app: name, website, a link to your app's privacy policy, a contact, redirect URIs (https only; http only for localhost).
- Keep the Client ID and Client Secret. The secret is shown once and lives only on your server.
- Implement the sign-in below and test it yourself and with testers.
- Submit the permissions you need (email, phone) for review — each one on its own, with a reason.
https://id.aveelon.com/.well-known/openid-configurationSign-in flow (Authorization Code + PKCE)
1. Send the person to the sign-in page:
https://id.aveelon.com/api/oauth2/authorize
?response_type=code
&client_id=pa_XXXXXXXXXXXXXXXX
&redirect_uri=https://your.site/auth/aveelon/callback
&scope=openid%20profile
&state=RANDOM_STRING
&code_challenge=BASE64URL(SHA256(code_verifier))
&code_challenge_method=S256
2. The person signs in and sees the consent screen: your app, the developer, links to your documents and the permissions. After «Allow», Aveelon sends them back to redirect_uri with code and state. Check that state matches.
3. Exchange the code for tokens (from your server):
curl -u pa_XXXXXXXXXXXXXXXX:CLIENT_SECRET https://id.aveelon.com/api/oauth2/token \
-d grant_type=authorization_code \
-d code=CODE \
-d redirect_uri=https://your.site/auth/aveelon/callback \
-d code_verifier=ORIGINAL_code_verifier
Mobile and single-page apps (no secret) send only client_id and code_verifier — PKCE is required for them.
4. The person's data is in the id_token (JWT, RS256, keys at /api/oauth2/jwks) or from:
curl -H "Authorization: Bearer ACCESS_TOKEN" https://id.aveelon.com/api/oauth2/userinfo
{ "sub": "…", "name": "Aigerim Kassymova", "preferred_username": "aigerim", "picture": "https://…" }
sub is the person's permanent Aveelon identifier. Link accounts by it, not by email.
Permissions
| Scope | What the app gets | How |
|---|---|---|
openid | sub — the identifier | right away |
profile | name, @username, profile photo | right away |
email | email and whether it is verified | after Aveelon review |
phone | phone number | after Aveelon review |
Posts, comments and direct messages come in the next version. Direct messages will be available only to verified businesses (IE or LLP) and only for a business's conversations with its own customers.
Development mode and review
- Development mode. A new app works right away, but only for you and up to 20 testers (add them in the dashboard by @username or email). Others come back to you with
access_denied. - App review. We check the name, website, privacy policy and redirect URIs — usually within two business days. Once approved, anyone can sign in.
- Permission review. You request email and phone separately and explain why. While a permission is in review, only you and your testers can use it. A refusal comes with a reason — fix it and request again.
- If an app asks for a permission that is not approved, the person comes back to you with
access_denied.
Children under 14
- A child connects an app only after a parent allows it: the consent screen gives the child a link for the parent, who opens it and presses «Allow».
- A child's email and phone are never shared, even if the permission is approved.
- The response carries
"under_14": true. Do not show such users interest-based ads and do not profile them.
Tokens
| Token | Lifetime |
|---|---|
| authorization code | 5 minutes, single use |
| access token | 10 minutes |
| refresh token | 30 days, only for apps with a secret; rotated on every refresh |
A person can disconnect your app at any time: Aveelon ID → «Connected apps». Tokens stop working, and data received from Aveelon must be deleted within 30 days. Revoke a token: POST /api/oauth2/revoke.
Rules
- Ask only for permissions your app cannot work without, and tell the user why.
- Do not sell or share user data, and do not use it for advertising outside your app.
- Keep the Client Secret only on your server. If it leaks, rotate it in the dashboard.
- Use the «Log in with Aveelon» button and logo only for signing in; do not present your app as an Aveelon product.
The full Developer Terms and Platform Policy are published at legal.aveelon.com. Questions: info@aveelon.com.