neilberkman

neilberkman

Hi all - I’ve been building Attesto, a set of libraries that brings certified OAuth 2.1 and OpenID Connect to Elixir, whether you want to be an identity provider, talk to one, or put OAuth in front of an MCP server.

It’s OpenID Certified, including FAPI 2.0 (Security Profile and Message Signing), the bank-grade profile behind open banking. As far as I can tell from the OpenID Foundation’s directory, that makes it the first Elixir provider certified for FAPI 2.0. The certs also cover OpenID Connect Basic and Config, all three Logout profiles, Session Management, and FAPI-CIBA, and they run against the Foundation’s conformance suite rather than being self-asserted.

For Phoenix apps, attesto_phoenix is a drop-in authorization server: /authorize, /token, PAR, DPoP, mTLS, PKCE - backed by your own Ecto schemas. You keep your login and consent screens, it handles the protocol.

On the MCP side, the spec now has servers act as OAuth 2.1 resource servers, and attesto_mcp handles that boundary. It protects your /mcp endpoint, publishes the RFC 9728 metadata that lets Claude, ChatGPT, and other MCP clients discover how to authorize, verifies Bearer/DPoP/mTLS tokens locally, and enforces scopes before a request reaches your tools. It drops straight into Anubis, or any Plug/Phoenix MCP server.

If you’re on the client side, attesto_client covers the relying-party work: discovery, JWKS, ID-token and JARM verification, request objects, private_key_jwt.

All of it sits on a small conn-free core with no Phoenix or Ecto assumptions, so you can build on that directly if you’re on a different stack.

Everything’s on Hex with docs, and I’d welcome feedback, especially from anyone doing OAuth for MCP.

Hex: attesto · attesto_phoenix · attesto_client · attesto_mcp

Showing Posts 1 to 2

neilberkman

neilberkman OP

Several updates since the initial announcement.

Most of this falls under OpenID for Verifiable Credentials (OID4VC), the protocols behind the EU Digital Identity Wallet, across all three specified roles:

  • Issuer (OID4VCI) attesto_phoenix mounts the issuance endpoints; after your own auth/consent you hand a wallet a credential as SD-JWT VC, ISO 18013-5 mdoc, or jwt_vc_json. For when you’re the one attesting something: a PID/eID provider, a university issuing diplomas, a bank issuing an account credential.
  • Verifier (OID4VP) the presentation side. A wallet presents a credential and you verify the issuer signature, holder binding, and only the claims you asked for (DCQL, selective disclosure). Anywhere you’d otherwise photograph an ID - KYC, age checks, entitlement - without the raw document.
  • Holder (the wallet itself) new in attesto_client: take a credential offer, prove the holder key, request and verify the credential, then present it back to a verifier.

Targets the High Assurance Interoperability Profile (HAIP) and runs green against the OpenID Foundation’s OID4VCI/OID4VP conformance suites. Those suites are still alpha so these are not new certifications yet.

A few things outside the wallet work:

  • attesto_client is now OpenID Certified as a Relying Party (Basic/Config/Dynamic) — the client side is certified now too, not just the provider.
  • Resource Indicators (RFC 8707) in the provider and core: an access token is audience-bound to one resource, so a token minted for API A can’t be replayed at B. Useful anywhere one deployment fronts several APIs.
  • attesto_mcp picked up that per-resource confinement plus multi-resource routing: host several OAuth-protected MCP servers behind one app, each with tokens scoped to it. (It’s the auth boundary in front of your MCP server; the transport/streaming stays with your server lib, e.g. anubis_mcp.)

There’s also been substantial hardening and correctness fixes across the releases. I recommend updating when convenient, but nothing is critical.

Latest versions are attesto 1.8.0, attesto_phoenix 2.7.0, attesto_client 2.3.0, attesto_mcp 1.0.5.

neilberkman

neilberkman OP

I’ve published a number of versions of the attesto family of libraries since my last update so I thought it was time for an update on a few significant developments, especially since these libraries are seeing decent adoption based on the download numbers. It’s been nice to see the community finding value in these libraries!

Since my last update: the OpenID Foundation has now published Attesto’s official final certifications in the Issuer role for OID4VCI 1.0 + HAIP 1.0 and the Verifier role for OID4VP 1.0 + HAIP 1.0. In my previous post, those conformance suites were still alpha and did not yet confer certification but they’re now official.

Alongside that, I put all five attesto repositories through an extensive security and correctness review. I mapped CVEs, advisories, public audits, and patch histories from comparable implementations in other languages, and used multiple frontier models as independent, adversarial reviewers. This uncovered quite a few issues and I’d advise updating to the latest versions. None were severe enough to warrant retiring any previous releases on Hex, but I would still strongly suggest updating to the latest versions.

Those versions are attesto 2.4.0, attesto_client 2.8.0, attesto_phoenix 4.0.2, attesto_mcp 1.4.0, and attesto_mcp_server 2.5.0. The releases tighten fail-closed behavior and specification compliance across OID4VP/DCQL, key attestation, refresh-token reuse detection, SD-JWT and COSE, OpenID Federation, and MCP authorization and request state. The package changelogs have the full details.

Also, in case you missed it, attesto_mcp_server is a relatively new addition. The announcement is in a separate thread.

— All posts loaded —

Where Next? Top

Trending in Announcing Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
261 13183 112
New
achempion
Hi, I would like to tell about my initiative to further maintain and develop Waffle project which is the fork of Arc library. The progre...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
charlenopires
Hi everyone :waving_hand: I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New

Other Trending Topics Top

OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
bartblast
If you haven’t tried Hologram yet, what’s stopped you? Here’s why I’m asking. Building a framework turns out to be two jobs, the framewo...
New
AstonJ
With advancements in AI gathering pace and set to increasingly accelerate, perhaps it’s worth having an annual thread on the topic - feel...
New
mat-hek
Popcorn, the library that runs Elixir code in the browser, is now stable :popcorn: This is possible because it now builds on a very stab...
New
sntran
In my third year of college, around 2010, I found Erlang. A few years later, I found Elixir. I liked the ideas at once: many small proces...
New
gtcode
I’ve been tinkering with Lynx (by José) via hold_ledger. I used AI to write the code, a separate specification, the tests, and the Lean p...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews