New explainer for IdP sign-in status API.

126 views
Skip to first unread message

FedCM developer newsletter

unread,
Oct 16, 2023, 1:50:38 AM10/16/23
to FedCM developer newsletter

Hello FedCM newsletter subscribers!


The Chrome team has been actively working with the Firefox and Safari teams to make the IdP Sign-in Status API which is currently in Origin Trial interoperable and extensible. During TPAC 2023, we aligned on the API in general and one outcome that affects the current deployment is the API renaming. 

"IdP Sign-In Status API" has been renamed to "IdP Login Status API". It also changes the API for JS and the HTTP header. 


HTTP Headers

M116-119:

IdP-SignIn-Status: action=signin

IdP-SignIn-Status: action=signout-all


M119-:

Set-Login: logged-in

Set-Login: logged-out


JS API

M116-119:

IdentityProvider.login()

IdentityProvider.logout()


M119-:

navigator.login.setStatus("logged-in")

navigator.login.setStatus("logged-out")


Chrome 119 supports the old and new API. Chrome 120 supports only the new one.


See more details on Explainer.


Reply all
Reply to author
Forward
0 new messages