0

I need a custom authentication provider using JWT library for authenticate some REST, but in this Drupal other people using other custom authentication similar to my provider. The problem: If i check my custom provider as auth provider for my rest. enter image description here

when i try to send a request to this REST, everytime drupal use the other authentication method 'adf_jwt_auth'. This only works if increase the priorty for my authentication method, but if i do this the other auth method don't works anymore, i need using both.

my_module.authentication.jwt_auth:
class: Drupal\my_module\Authentication\Provider\JwtAuth
arguments: ['@config.factory', '@entity_type.manager']
tags:
  - { name: authentication_provider, provider_id: 'jwt_auth', priority: 100 }

The other auth method have the same code on .service.yml definition.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.