Problem/Motivation
The module currently has placeholders (previously hardcoded values) for tokens and user logins in MyrestTokenAuthProvider and OpenAPI generators.
Proposed resolution
- Implement a configuration form to manage API tokens and associated users.
- Store sensitive tokens using the State API or the Key module.
- Update
MyrestTokenAuthProviderto load credentials from configuration/state instead of class constants.
Remaining tasks
Create configuration schemas and forms, then refactor the provider.
User interface changes
New configuration page for API tokens.
API changes
Tokens are no longer fixed in code and can be managed via UI.
Issue fork myrest-3615004
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
sergeydruua commentedComment #6
sergeydruua commented