Metadata-Version: 2.4
Name: ingot-auth
Version: 0.1.0
Summary: Sign-up, sign-in and sessions of the users of Ingots applications.
Keywords: ingots,auth,authentication,sign-in,sign-up
Author: Aliaksandr Karotki
Author-email: Aliaksandr Karotki <abkarotki@gmail.com>
License-Expression: Apache-2.0
License-File: LICENSE
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Typing :: Typed
Requires-Dist: ingots>=0.33.1,<0.34
Requires-Dist: ingot-grpcio>=0.12.0,<0.13 ; extra == 'grpcio'
Requires-Dist: ingot-pymongo>=0.13.0,<0.14 ; extra == 'pymongo'
Requires-Python: >=3.14
Project-URL: repository, https://github.com/ak-ingots/ingot-auth
Project-URL: changelog, https://github.com/ak-ingots/ingot-auth/blob/main/CHANGELOG.md
Project-URL: documentation, https://ingots.readthedocs.io/projects/ingot-auth/
Provides-Extra: grpcio
Provides-Extra: pymongo
Description-Content-Type: text/markdown

# ingot-auth

[![ci](https://github.com/ak-ingots/ingot-auth/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/ak-ingots/ingot-auth/actions/workflows/ci.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/ak-ingots/ingot-auth/blob/main/LICENSE)
[![Documentation Status](https://app.readthedocs.org/projects/ingot-auth/badge/?version=latest)](https://ingots.readthedocs.io/projects/ingot-auth/en/latest/)

<!-- Links must be absolute: this README also renders on PyPI. -->

The sign-up, the sign-in and the sessions of the users of Ingots
applications. An addon of [Ingots](https://github.com/ak-ingots/ingots).

**Status:** pre-alpha: the registries of the tags and the attributes of the
profiles and of the attributes and the presets of the sessions, with their
metadata for the consumers, all of it over gRPC; the sign-up and the
sign-in by pluggable methods in steps, a nickname and a password, over gRPC
too, and an email and a code sent to it; the policies of what a user types,
operations run together in groups; the groups of the users, declared in the
code, and their members, on the command line and over gRPC; the sessions a
sign-in opens, a token turned into a caller; all of it stored in memory or
in MongoDB.

## For Consumers

```sh
uv add ingot-auth
```

The [documentation](https://ingots.readthedocs.io/projects/ingot-auth/en/latest/)
has the guide, the contrib, the caches, the storages and the transports an
application plugs in, and the Python API.

## Development

Requires [uv](https://docs.astral.sh/uv/) and `make`; uv fetches the
interpreters it needs. `make lint` lints the gRPC contract by
[Buf](https://buf.build/docs/cli/), of the version the ecosystem pins in
[ingots-libs](https://github.com/ak-ingots/ingots-libs/blob/main/.github/actions/setup-buf/version):
cloned inside ingots-libs, as `make clone` there does, it takes that one,
fetched on the first use; alone, install that version on the `PATH`, or give
its path as `BUF`.

```sh
make                 # the target list
make check           # everything CI runs: lint, test, coverage, wheel-test, doc, cl-check
make format          # black
make doc-serve       # build the documentation and serve it
make all             # build the sdist and the wheel into dist/
```

- Every change users should know about adds a news fragment to `changelog.d/`
  (see [its README](https://github.com/ak-ingots/ingot-auth/blob/main/changelog.d/README.md)).
- A release is a pull request setting the version (`uv version X.Y.Z`) and
  collating the changelog (`make cl-build VERSION=X.Y.Z`), then the tag
  `vX.Y.Z` on `main`: the `release` workflow publishes the tested build to
  TestPyPI, tests it as installed from there, then
  publishes it to PyPI. Run by hand, it rehearses on TestPyPI only.
