Create the 'yiisoft/auth-session' package to replace the 'yiisoft/user' package #514
klsoft-web
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The 'user' term is more relevant to a package that implements the
Yiisoft\Auth\IdentityInterfaceinterface, whereas theyiisoft/userpackage implements various authentication methods via thesession:authenticate(ServerRequestInterface $request)method checks if an identity ID is saved in thesession.login(IdentityInterface $identity)method sets an identity ID in thesession.logout()method removes an identity ID from thesession.And so on.
The names 'ApiAuth' and 'WebAuth' do not have to be related to the API or web application.
The
AuthenticatorInterfaceis a universal interface for any application that uses sessions.As the 'yiisoft/user' package contains many misleading names, including its own, the following names were suggested for the new package:
The AuthManager method names are:
All reactions