mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-26 23:19:54 +03:00
feat: support for the docker spec oauth2 token (#300)
This commit is contained in:
parent
b0811086fd
commit
ca7202d1f5
1 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,8 @@ export class Http {
|
|||
}
|
||||
if (bearer && bearer.token) {
|
||||
req.setRequestHeader('Authorization', `Bearer ${bearer.token}`);
|
||||
} else if (bearer && bearer.access_token) {
|
||||
req.setRequestHeader('Authorization', `Bearer ${bearer.access_token}`);
|
||||
} else {
|
||||
req.withCredentials = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue