Skip to content

Commit

Permalink
Reffactor
Browse files Browse the repository at this point in the history
  • Loading branch information
delfrrr committed Mar 10, 2024
1 parent ef11fc8 commit a63cbbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/client/actions/redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export function requestSensitiveScopes (returnPath) {
url.pathname = returnPath
const state = new AuthState()
state.setUiUrl(url.href)
console.log('setUiUrl', url.href)
state.setAction(AuthState.Action.ACTION_REQUEST_CODE)
state.setSensitiveScope(true)
dispatch(authRedirect(state))
Expand Down
7 changes: 3 additions & 4 deletions src/server/user/claims.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,9 @@ func (c ClaimsCheck) getAuthConfig(state *pb.AuthState) *oauth2.Config {
return &oauth2.Config{
ClientID: c.GoogleOAuthClientId,
ClientSecret: c.GoogleOAuthSecret,
// Scopes: []string{bigquery.BigqueryScope, googleOAuth.UserinfoProfileScope, googleOAuth.UserinfoEmailScope, "https://www.googleapis.com/auth/devstorage.read_write"},
Scopes: scope,
Endpoint: google.Endpoint,
RedirectURL: authUrl,
Scopes: scope,
Endpoint: google.Endpoint,
RedirectURL: authUrl,
}
}

Expand Down

0 comments on commit a63cbbe

Please sign in to comment.