Skip to content

kg0r0/button-mode-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🔳 Experimental implementation of FedCM - Button Mode API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published