Skip to content

Commit

Permalink
Fix invalid test configuration
Browse files Browse the repository at this point in the history
Use the same scopes that the CC client is configured with.

Co-authored-by: Dennis Leon <[email protected]>
Co-authored-by: Bruce Ricard <[email protected]>
  • Loading branch information
3 people committed Oct 26, 2018
1 parent 22f6060 commit 383c445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/services/sso.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func RequestScopes(cookie string, config OAuthConfig) (authCode string, httpCode
}

func AuthorizeScopes(cookie string, config OAuthConfig) (authCode string) {
authorizedScopes := `scope.0=scope.openid&scope.1=scope.cloud_controller.read&scope.2=scope.cloud_controller.write&user_oauth_approval=true&X-Uaa-Csrf=123456`
authorizedScopes := `scope.0=scope.openid&scope.1=scope.cloud_controller_service_permissions.read&user_oauth_approval=true&X-Uaa-Csrf=123456`
authorizeScopesUri := fmt.Sprintf("%v/oauth/authorize", config.AuthorizationEndpoint)

curl := helpers.Curl(Config, authorizeScopesUri, `-i`, `--data`, authorizedScopes, `--cookie`, cookie+`;X-Uaa-Csrf=123456`, `--insecure`, `-v`).Wait()
Expand Down

0 comments on commit 383c445

Please sign in to comment.