# rvoip-auth-core
[](https://crates.io/crates/rvoip-auth-core)
[](https://docs.rs/rvoip-auth-core)
[](https://github.com/eisenzopf/rvoip)
OAuth2 and token-based authentication primitives for [rvoip](https://github.com/eisenzopf/rvoip).
Used by `rvoip-sip-registrar`, `rvoip-vcon` (JWS signing), and any rvoip
service that authenticates incoming requests via Bearer tokens or RFC 8898
SIP/OAuth profiles.
This crate depends on the trait-only `rvoip-core-traits`, not on
`rvoip-core` itself — that's what breaks the
`rvoip-core` → `rvoip-vcon` → `rvoip-auth-core` → `rvoip-core` cycle and
lets `rvoip-core` take `rvoip-vcon` as an optional dep.
## Status
**Beta candidate** — part of the `rvoip-sip` 0.2.x beta train. API may
adjust for incoming review feedback before 0.2.x beta train ships, but no
restructure is planned.
## Install
```toml
[dependencies]
rvoip-auth-core = "0.2.2"
```
## Where to start
- Token verification: see [`bearer_stub`](src/bearer_stub.rs) for the
minimal JWK/JWS verifier `rvoip-vcon` and `rvoip-sip-registrar` plug
into.
- Integration examples live in the [rvoip-sip
README](../../sip/rvoip-sip/README.md) and in
[`crates/sip/rvoip-sip/examples/callback_peer/`](../../sip/rvoip-sip/examples/callback_peer/).
## License
Licensed under the MIT license. See the repository [LICENSE](https://github.com/eisenzopf/rvoip/blob/main/LICENSE).