How to login to my admin user when using pas.plugins.authomatic

Hi,

I am using pas.plugin.authomatic for my project but i can't login with a username or password , if incase i need to login as admin , i can only see the login with GitHub .

is there any way to login with to volto or plone with username and password when using pas.plugins.authomatic.

Thanks!

Midhlaj Nk via Plone Community wrote at 2023-4-27 04:25 +0000:

I am using pas.plugin.authomatic for my project but i can't login with a username or password , if incase i need to login as admin , i can only see the login with GitHub .

is there any way to login with to volto or plone with username and password when using pas.plugins.authomatic.

Plone is using the "Pluggable Authentication Service" (--> "PAS", "PlonePAS")
to handle authentication, authorization, user, group and role management.
This mini framework defines a set of interfaces which correspond
to subtasks of the overall service.
Subtasks are for example "extract authentication credentions (from
the request)", "authenticate credentials (to identify a user)", ...

Plugins can implement one or more of those interfaces.
To use a plugin, you must add it to the authentication service
(--> acl_users), and activate it for some of its implemented interfaces.

In your case, you will likely need to activate a further plugin
for the "credential extraction" interface. You might also
need a further "authentication" plugin (less likely)
or a further "challenge" plugin (likely).
The "challenge" plugin is responsible for the way how
authentication information is requested -- e.g. to show a login page
if the authentication information in the request was insufficient
to identify a user with sufficient privileges for the request.

1 Like

Thank you, let me check it

If there is nothing else, there is failsafe_login form, like https://classic.demo.plone.org/failsafe_login

2 Likes

I see in volto-authomatic, AuthProviders are pulled in from the backend. Could I somehow make Plone an auth provider that would then be listed as an option? Or should I rather customize the LoginForm to have the default plone login template with the AuthProviders below?