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
7
votes
1 answer

How can I configure Google OAuth consent screen to not show checkboxes?

Hi Stackoverflow community, I'm trying to configure a web app to make use of certain Google scopes. I want the user to either approve all of them or reject all of them. This is exactly the behavior I do get when playing around with Google OAuth…
cSn
  • 2,796
  • 3
  • 23
  • 29
7
votes
2 answers

Difference between Clear-Variable and setting variable to NULL

I often use variables which are declared in the script scope to avoid problems with functions and their scopes. I am declaring these variables like this: New-Variable -Name test -Option AllScope -Value $null ... or sometimes I switch existing…
user5197928
7
votes
1 answer

Find_by_sql as a Rails scope

r937 from Sitepoint was kind enough to help me figure out the query I need to return correct results from my database. What I need is to be able to use this query as a scope and to be able to chain other scopes onto this one. The query is: SELECT…
rctneil
  • 7,016
  • 10
  • 40
  • 83
6
votes
5 answers

Why am I getting error while adding service in EmailJS?

I am getting 412 Gmail_API: Request had insufficient authentication scopes while trying to configure service in Email JS. Also, receiving the same error while sending email using React.js library. Below is the screenshot of the error. Image…
Anil
  • 61
  • 1
  • 1
  • 7
6
votes
1 answer

Can't read phone numbers from user's google profile using - auth/user.phonenumbers.read scope

Based on the documentation of Google People API I am using profile scope - https://www.googleapis.com/auth/user.phonenumbers.read and PersonFields=phoneNumbers to read the authenticated user's phone numbers only in their Google profile (none from…
Vismay Patel
  • 173
  • 1
  • 10
6
votes
4 answers

Laravel Global Scope Auth

I've created an anonimus global scope in the users model as below in order to get only public users in the frontend: protected static function boot() { parent::boot(); static::addGlobalScope('is_public', function(Builder $builder) { …
manuelprojects
  • 213
  • 3
  • 10
6
votes
1 answer

Creating a jQuery Plugin, How do I do Custom Scopes?

I would like to create a jQuery plugin with an API something like this: $("#chart").pluginName().attr("my_attr"); Instead of these: $("#chart").pluginName_attr("my_attr"); $.pluginName.attr("#chart", "my_attr"); Basically, instead of having to…
Lance
  • 75,200
  • 93
  • 289
  • 503
5
votes
1 answer

How can I use scopes with Ransack in Rails 3?

In my Widget model I have the following: scope :accessible_to, lambda { |user| if user.has_role?('admin') self.all else roles = user.roles role_ids = [] roles.each { |r| role_ids << r.id } …
jklina
  • 3,407
  • 27
  • 42
5
votes
0 answers

How to customize KeyCloak auth flows based on requested scope

I'm trying to configure the KeyCloak Browser Flow to allow users requesting scope1 to use a user/password form, and users requesting scope2 to be required to use the User/password form plus an OTP. My question is two-part: Am I not understanding…
Hamy
  • 20,662
  • 15
  • 74
  • 102
5
votes
1 answer

How to find out if app has been disconnected from Google Drive?

I'm building an app where I store app data in the app-specific-folder on Google Drive. I've been able to setup everything related to file storage and retrieval. The problem I'm facing is regarding permissions. The user has an option to disconnect…
vepzfe
  • 4,217
  • 5
  • 26
  • 46
5
votes
2 answers

How to retrieve scopes from OAuth token within Spring boot SSO + zuul

I am trying to make a simple API gateway using Spring boot SSO + Zuul. I need to translate OAuth scopes into headers which will be further used by some other backend service to do RBAC based on headers. I am using this CustomOAuth2TokenRelayFilter…
5
votes
3 answers

Protect the global reference in javascript

The following javascript code, allows you to access the global object (window/worker). (new function Outer(){ console.log(this); /* The object */ (function(){ // This function could be a 3rd Party function console.log(this); /*…
ShrekOverflow
  • 6,795
  • 3
  • 37
  • 48
5
votes
2 answers

applying a default scope with reference to a relation in yii

I can't find too much documentation on applying a default scope to a model in yii, I was wondering if someone could explain or point me in the right direction. The quick version of my question: Is it possible to add a relation to a default scope, or…
Stu
  • 4,160
  • 24
  • 43
5
votes
2 answers

Using scope to return results within multiple DateTime ranges in ActiveRecord

I've got a Session model that has a :created_at date and a :start_time date, both stored in the database as :time. I'm currently spitting out a bunch of results on an enormous table and allowing users to filter results by a single date and an…
4
votes
2 answers

Programming Languages problem, Procedural Language, Dynamic Scope

I have been assigned such a problem in my software development course. So, the normal way is to check each procedure one by one and remember each call by each subprogram, however, I am a bit lazy programmer and I have decided to take a shortcut by…
user17264411
1
2
3
25 26