Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.65 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.65 KB

button-mode-api

License: MIT
🔳 Experimental implementation of FedCM - Button Mode API

This simple implementation provides for developers to try out Button Mode API in their local environment.

🚧 Note: This is not ready for production 🚧

Usage

From Chrome 125, the Button Mode API is starting an origin trial on desktop. So now we need to use Chrome Canary to enable FedCmButtonMode.

image

Run the IdP and RP server with one of the following commands:

# Use docker 
$ docker-compose build
$ docker-compose up -d

# No use of docker
rp $ go run main.go
idp $ go run main.go

Access to http://localhost:8001.

button_mode_api

Sign-in flow

You can see the following authentication flow from the Federated Credential Management API developer guide.

References