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
Questions tagged [scopes]
383 questions
1
vote
1 answer
Can you have a scope which checks from absence?
I have an Invites table in my database and when i'm perform a task as a user I want to pass an Event.id to a scope User.not_invited_to(event)
How do I build this scope to check if the user ID is NOT in there?
class User
has_many :invites,…

Joseph Le Brech
- 6,541
- 11
- 49
- 84
1
vote
1 answer
rails scopes slow compared to sql
I use find_by_sql and within a second it gives me back a response:
Report.find_by_sql("SELECT min(reports.time) FROM reports WHERE unit_id = '#{Unit.find(3007).id}' AND driver_id = '#{Driver.find(2).id}' AND time >= '#{beginning}' AND time <=…

JohnMerlino
- 3,900
- 4
- 57
- 89
1
vote
3 answers
Difference between named function expression, and using a variable reference?
from javascript.info:
function makeArmy() {
var shooters = []
for(var i=0; i<10; i++) {
var shooter = function shoot() {
alert( shoot.i )
}
shooter.i = i
shooters.push(shooter)
}
return shooters
}
var army =…

frrlod
- 6,475
- 8
- 31
- 37
1
vote
1 answer
Questions about the scopes, node.js, and express
I really suck at understanding scopes and other things of that nature in just about every language. Right now I am building an express application that takes user input and then queries an arbitrary api and then feeds it to the console. To handle…

aarocka
- 11
- 1
1
vote
1 answer
Display objects that are LIKE another object that is being displayed on show page
Hopefully the title makes some sense but I will go into more details. I have a simple app that allows users to upload recipes. You can then view them all or view each recipe individually via the show action
def show
@recipe =…

Richlewis
- 15,070
- 37
- 122
- 283
1
vote
2 answers
How can I transport an entity from one jsf-view to another?
I have the following structure:
listView.xhtml
ListBean.java
@ManagedBean
@ViewScoped
public…

artgrohe
- 3,082
- 2
- 25
- 31
1
vote
1 answer
Accessing functions across different scopes
I'm trying to understand the following scenario where I have defined a function in one scope and want to access it another.
I have two different JavaScript files, helper.js and main.js, and both have a self-invoking function:
helper.js:
var…

Sharat Achary
- 31
- 3
0
votes
2 answers