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
4 answers
Spring : Singleton VS Prototype
i'm new to Spring starting to learn new concepts , and i found topic speaking about bean Scopes :
- Singleton : returns the same instance every time.
- Prototype : returns new instance of the object per every request.
my question is : how is this…

Mohamed Nagy
- 169
- 2
- 4
- 21
1
vote
1 answer
Rails - with Pundit Scopes in policy
I am trying to figure out how to use pundit policy scopes in my article policy.
I have written an article policy, that nests a scope and then has a resolve method in it. The resolve method has alternatives based on who the current_user is.
My…

Mel
- 2,481
- 26
- 113
- 273
1
vote
0 answers
How to assign grabbed data to outer scope variable in JavaScript restangular
I'm were had troble to fetching plain objects from database using restangular and i solved it by using restangular plain() method on fetched data. but now i'm having a trouble on assigning that data to outer scope variable. demo code-
i have load…

Rahul
- 929
- 2
- 8
- 17
1
vote
1 answer
declare variable over Sessions
I start a PowerShell script that calls a function with Invoke-Command on another computer. I want to declare a variable that is available over all this sessions.
$var = "global"
function do-function{
$var = "function"
return…

MaxW
- 49
- 3
- 10
1
vote
1 answer
javascript ES6 class/method scope
I can't figure out how to correct the context of my methods.
I have this class:
export default class Handler {
constructor() {
// init
}
handleMessage(channel, user, message) {
this.handleDefault(channel, user,…

gempir
- 1,791
- 4
- 22
- 46
1
vote
1 answer
Rails Error: Can't understand the message - ArgumentError: wrong number of arguments (0 for 1)
I am trying to make an app with Rails 4.
I have three models being:
User.rb (for authentication and fixed details)
Profile.rb (for user details which can change)
project.rb (for projects that users create)
In my projects_controller, I have:
def…

Mel
- 2,481
- 26
- 113
- 273
1
vote
1 answer
Scope handling in OAuth2 protocol
I have a general question regarding how scopes in the OAuth2 protocol are handled. For easy argumentation lets start with a concrete example:
Lets say I have an OAuth server A which I want to use in order to protect two RESTful APIs R1 and R2. These…

evermean
- 1,255
- 21
- 49
1
vote
1 answer
python itertools combinations logic
I'm looking at the code for the combinations on the python documentation for itertools (https://docs.python.org/2/library/itertools.html)
def combinations(iterable, r):
# combinations('ABCD', 2) --> AB AC AD BC BD CD
# combinations(range(4),…

LuckyStarr
- 1,465
- 2
- 12
- 14
1
vote
1 answer
Getting InRequestScope object in MVC Filters
As far as i know ASP MVC caches filters -> so they are not bound in request scope thus if i will ask ninject inside it for an instance of object i will get it in completly new scope.
In Web-Api I can use actionContext.Request.GetDependencyScope()…

user2184057
- 924
- 10
- 27
1
vote
1 answer
AngularJS Scope and tab directive
I just can't get how AngularJS scope works.
I have an ui-tabs Directive, with a tab controller. This is supposed to handle tabbed content.
This tab directive can contains 2 others directive, heading-template Directive, which is the template for the…

yachaka
- 5,429
- 1
- 23
- 35
1
vote
1 answer
Google+ OAuth Scopes
I realize that questions on scopes have been asked before, but it's been difficult to sort through much of the documentation and many of the solutions as Google appears to have made a number of recent changes to the way its OAuth works.
I'm simply…

user903345
- 370
- 3
- 10
1
vote
0 answers
Yii - scopes applied after beforeFind in relation
I created a test scope that adds some test condition to DB criteria and applied it in X::model()->with('Y:test')->findByPk(1) By dumping DB criteria in beforeFind I can see the condition is not added there, however by logging the sql query I can see…

user294034
- 323
- 1
- 2
- 9
1
vote
1 answer
Directive that needs to retrieve datas from its parent to display it
I want to write a simple directive that displays a list of datas from the parent.
The parent controller has something like
$scope.datas = [1,2,3,4]
How should I write the directive ?
Use isolated scopes and have something like scope : { display…

user2944669
- 165
- 10
1
vote
1 answer
Rails scope/class method selecting virtual attribute
I'm currently using the has_scope gem in conjunction with scopes/class methods on models to filter result sets returned to my UI.
I have a model Task which I'd like to be able to filter by status -- a virtual attribute on the model.
The Task model…

xyzjace
- 432
- 1
- 5
- 16
1
vote
0 answers
Sharepoint 2013 SearchBoxEx scopes not loading properly
I need to brand the sharepoint search box to allow scopes. When using the default SearchBoxScriptWebPart, the scopes do show as required. However I need the scopes to show as text besides the dropdown arrow (the default SearchBoxScriptWebPart only…

Pawcu
- 332
- 1
- 14