add new docker provider oauth scope
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
This commit is contained in:
@@ -23,6 +23,7 @@ ENV SCOUT_VERSION=1.0.9
|
|||||||
RUN wget -O /tmp/scout.tar.gz https://github.com/docker/scout-cli/releases/download/v1.0.9/docker-scout_1.0.9_linux_amd64.tar.gz \
|
RUN wget -O /tmp/scout.tar.gz https://github.com/docker/scout-cli/releases/download/v1.0.9/docker-scout_1.0.9_linux_amd64.tar.gz \
|
||||||
&& tar -xvf /tmp/scout.tar.gz docker-scout -C /usr/local/bin \
|
&& tar -xvf /tmp/scout.tar.gz docker-scout -C /usr/local/bin \
|
||||||
&& chmod +x /usr/local/bin/docker-scout \
|
&& chmod +x /usr/local/bin/docker-scout \
|
||||||
|
&& ln -s $(which docker-scout) /usr/lib/docker/cli-plugins \
|
||||||
&& rm /tmp/scout.tar.gz
|
&& rm /tmp/scout.tar.gz
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -276,7 +276,7 @@ func initOauthProviders(p *types.Playground) {
|
|||||||
conf := &oauth2.Config{
|
conf := &oauth2.Config{
|
||||||
ClientID: p.DockerClientID,
|
ClientID: p.DockerClientID,
|
||||||
ClientSecret: p.DockerClientSecret,
|
ClientSecret: p.DockerClientSecret,
|
||||||
Scopes: []string{"openid"},
|
Scopes: []string{"openid", "full_access:account"},
|
||||||
Endpoint: oauth2.Endpoint{
|
Endpoint: oauth2.Endpoint{
|
||||||
AuthURL: fmt.Sprintf("https://%s/authorize/", endpoint),
|
AuthURL: fmt.Sprintf("https://%s/authorize/", endpoint),
|
||||||
TokenURL: fmt.Sprintf("https://%s/oauth/token", endpoint),
|
TokenURL: fmt.Sprintf("https://%s/oauth/token", endpoint),
|
||||||
|
|||||||
Reference in New Issue
Block a user