Currently ReDoc shows the "Authentication" section by default. You can disable it by setting the no-auto-auth attribute:
$build = [
'#theme' => 'redoc',
'#attributes' => [
'no-auto-auth' => TRUE,
],
'#openapi_url' => …,
];… but that's just a work-around until we can surface the authentication information automatically.
See https://rebilly.github.io/ReDoc/#section/Authentication for an example.
The next phase of this depends on #2987434: Support config passing to allow injection of Authentication data..
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 2988275-3.patch | 447 bytes | richgerdes |
Comments
Comment #2
richgerdesComment #3
richgerdesAttached patch adds the attribute to the element.
Comment #5
richgerdesCommitted and pushed
Comment #6
wim leers+1 for this because
Thanks, @richgerdes!