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 MyrestTokenAuthProvider to 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

Command icon 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

sergeydruua created an issue. See original summary.

  • sergeydruua committed 3177bddc on 1.0.x
    Issue #3615004: Move API credentials out of exported configuration
    
sergeydruua’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

sergeydruua’s picture

Status: Fixed » Closed (fixed)