Questions tagged [scopes]

An OAuth Scope is a permission setting that limits the permissiveness of a given OAuth Token. Clients therefore provide a list of desired Scopes when obtaining a Token (alongside standard OAuth ClientId and Client Authentication details). The Token will then be granted (or not) according to the Authentication process and the Scopes granted for the given Client Id

383 questions
1
vote
0 answers

IIFE or anonymous function and global object

had a question about functions. Suppose I have a function statement as shown below: function someFunction() { } This gets assigned to global 'window' object as shown below: someFunction: ƒ someFunction() But if there is an IIFE as shown below, how…
Uzair Khan
  • 2,812
  • 7
  • 30
  • 48
1
vote
1 answer

Unusual scope in Rails

I need to do a scope where I find all files that have certain extensions - my current non-functional attempt is this: scope :visual, where(%w[.gif .jpg .jpeg .tif .tiff].include? File.extname(item_file_name), true) This attempt gives me errors -…
sscirrus
  • 55,407
  • 41
  • 135
  • 228
1
vote
3 answers

Rails - Logical Operator on Scopes, is it possible?

I have a class that represents a game (match) with 2 scopes: scope :home_lineuped, ->() { includes(:home_lineup).where(home_lineup: {lineuped: true }) } scope :away_lineuped, ->() { includes(:away_lineup).where(away_lineup: {lineuped: true })…
David Sousa
  • 71
  • 10
1
vote
1 answer

Why THIS point in the obj?

I extremely confusing In forEach loop why the THIS will point to the obj. I assume will output return this.id is undefined , because it called in a lexical function. THIS will point it to window. function foo(el) { console.log( el, this.id); } …
Wilker
  • 551
  • 2
  • 6
  • 21
1
vote
2 answers

Google Script Add-on requires access for an unused scope

I've built an add-on for google spreadsheets using google apps script and I can't figure out why it asks for Drive permissions. The Drive API is not enabled, I'm not using DriveApp class anywhere in the project and the driveapp scope is also not…
Valip
  • 4,440
  • 19
  • 79
  • 150
1
vote
0 answers

If I already have ../auth/documents.currentonly scope, do I also need ../auth/documents?

I'm transitioning a Google Docs add-on that was approved when the add-on concept first started (many years ago) from a Docs-only add-on to one that works for both Slides and Docs. In the process, I have had to redefine a lot of things (create a new…
Fuhrmanator
  • 11,459
  • 6
  • 62
  • 111
1
vote
1 answer

Does capitalization affect variables within a function block in golang?

If I declare a variable or parameter in a function, does capitalization have any affect or meaning? Obviously for methods and variables outside of functions it exports them, but what about the above?
user40176
  • 319
  • 2
  • 10
1
vote
0 answers

How to get full access to uber scopes (Scope.PROFILE, Scope.ALL_TRIPS, Scope.RIDE_WIDGETS)?

We applied for the Scope:- Scope.PROFILE, Scope.ALL_TRIPS, Scope.RIDE_WIDGETS, but now we’ve lost them due to policy changes uber. We have been trying to resolve this using the following information which was available on the developer site but…
1
vote
3 answers

Scope with association .any?

I have two models, employees, and departments. Employes belong Departments through Positions. In a select tag I'd like to list only departments that have employees in them. Right now I have: @current_company.departments.collect {|d| [d.title, d.id]…
Jarrett
  • 113
  • 1
  • 9
1
vote
2 answers

How to implement google API Incremental authorization in PHP?

I have implemented oauth2 with Google, using the googleapis/google-api-php-client API client in PHP and have got it working with the sign in scope "profile". I want to use incremental authorization, such that some time after the user has logged in…
1
vote
1 answer

Difference between COOKIE and CLIENT scopes in ColdFusion?

I have been googling, but haven't found an answer. I understand pretty well what the cookie scope does in ColdFusion. But I'm not 100% sure about the purpose of the client scope or the differences between it and the cookie scope. It gets a bit…
DaveBurns
  • 2,036
  • 2
  • 27
  • 37
1
vote
1 answer

GoogleJsonResponseException: 403 Forbidden with insufficient authentication scopes

Recently I was using google spreadsheet api to make values being automatically updated. I was able to read the values from cells, but when I'm trying to write them, the problem occurs. From the console I can actually see that I do not have required…
ProbDed
  • 159
  • 1
  • 3
  • 11
1
vote
1 answer

Can i access more than 1 scope when requesting for token?

I am creating API, which has multiple access levels and I have 16 routes groups (for example users, users-basic, payments, etc.) and each of them has a separate scope. Question is - can I pass multiple scopes in authorize request? I want to manage…
1
vote
0 answers

How to set scopes when using default service account in GAE

I am trying to use the sheets API via a service account. The code is working locally, however while hosting it in GAE, it is giving "insufficient scopes" error. build = service('sheets','v4') data =…
1
vote
1 answer

Manually/Programmatically Adding Scopes

I have a Google Form that acts as a Parent/Template with Google Apps Scripts tied along with it. Whenever I make a copy of the Google Form, the Google Apps Scripts are copied along with it but the scopes have to be reviewed each time. Is there a way…
CHEWWWWWWWWWW
  • 169
  • 3
  • 20