oauth-2.0

Yahoo OAuth2 Implicit Grant flow not working for new yahoo app

落爺英雄遲暮 提交于 2020-08-24 07:40:06
问题 I have existing web app and dedicated Yahoo App working. It uses OAuth2 Implicit Grant Flow Now I want to set up another domain working by same principle. I have created new Yahoo App with new callback domain Url used to get user consent (in both cases) is https://api.login.yahoo.com/oauth2/request_auth?client_id=consumer_key&redirect_uri=https://redir_url&response_type=token It is working for old domain and old Yahoo App (Consumer key ends in --) But it doesn't want to work with new domain

Alternative to calling gapi.auth.authorize every time

此生再无相见时 提交于 2020-08-24 03:31:59
问题 I have a single-page web application that uses Google Apps Script Execution API to call functions that return the data I need. I based my project on the quick start sample code provided by Google. This requires the use of OAuth and I am accomplishing that via functions that make use of the client JavaScript library provided by Google. The first time a user is asked to authenticate the following function is used with immediate: false : gapi.auth.authorize({client_id: CLIENT_ID, scope: SCOPES,

Safely distribute OAuth 2.0 client_secret in desktop applications in Python

送分小仙女□ 提交于 2020-08-23 03:28:32
问题 I was looking for some best practices sample code about how to design and create my own desktop app (or installed app) in Python requiring OAuth 2.0 Authorization flow to Google, and found this repository provided by Google : https://github.com/googlesamples/oauth-apps-for-windows (coded in C#, but anyway the design should be the same). When diving into the code, I was surprised to see that the client_secret was directly embedded, in clear, into the source code (take a look here : https:/

Safely distribute OAuth 2.0 client_secret in desktop applications in Python

↘锁芯ラ 提交于 2020-08-23 03:28:27
问题 I was looking for some best practices sample code about how to design and create my own desktop app (or installed app) in Python requiring OAuth 2.0 Authorization flow to Google, and found this repository provided by Google : https://github.com/googlesamples/oauth-apps-for-windows (coded in C#, but anyway the design should be the same). When diving into the code, I was surprised to see that the client_secret was directly embedded, in clear, into the source code (take a look here : https:/

Restrict login to specific domain using Node Passport with Google Auth

可紊 提交于 2020-08-20 20:58:13
问题 I am implementing Google Auth on an internal service at work. It is a JS client heavy application with a Node backend. I am choosing to use the Node module Passport.js with the passport-google-oauth strategy. I have successfully got it working but one thing is still confusing me. I want to ensure my application allows only company employees to login. I understand that you can restrict the login by domain using a parameter called "hd", according to the official documentation. Firstly, where do

Restrict login to specific domain using Node Passport with Google Auth

跟風遠走 提交于 2020-08-20 20:57:04
问题 I am implementing Google Auth on an internal service at work. It is a JS client heavy application with a Node backend. I am choosing to use the Node module Passport.js with the passport-google-oauth strategy. I have successfully got it working but one thing is still confusing me. I want to ensure my application allows only company employees to login. I understand that you can restrict the login by domain using a parameter called "hd", according to the official documentation. Firstly, where do

How to interact with back-end after successful auth with OAuth on front-end?

孤街醉人 提交于 2020-08-20 18:01:00
问题 I want to build small application. There will be some users. I don't want to make my own user system. I want to integrate my application with oauth/oauth2.0. There is no problem in integration of my front-end application and oauth 2.0. There are so many helpful articles, how to do this, even on stackoverflow.com. For example this post is very helpful. But. What should I do after successful authorization on front-end? Of course, I can just have flag on client, which says "okay, mate, user is

How to interact with back-end after successful auth with OAuth on front-end?

爷,独闯天下 提交于 2020-08-20 18:00:30
问题 I want to build small application. There will be some users. I don't want to make my own user system. I want to integrate my application with oauth/oauth2.0. There is no problem in integration of my front-end application and oauth 2.0. There are so many helpful articles, how to do this, even on stackoverflow.com. For example this post is very helpful. But. What should I do after successful authorization on front-end? Of course, I can just have flag on client, which says "okay, mate, user is

How do I use multiple 'JWK Set Uri' values in the same Spring Boot app?

大城市里の小女人 提交于 2020-08-17 03:53:12
问题 I have a requirement to use two different authorization servers (two Okta instances) to validate authentication tokens coming from two different web applications inside a single Spring Boot application which is a back-end REST API layer. Currently I have one resource server working with the following configuration: @Configuration @EnableWebSecurity public class ResourceServerSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws

How do I use multiple 'JWK Set Uri' values in the same Spring Boot app?

独自空忆成欢 提交于 2020-08-17 03:53:12
问题 I have a requirement to use two different authorization servers (two Okta instances) to validate authentication tokens coming from two different web applications inside a single Spring Boot application which is a back-end REST API layer. Currently I have one resource server working with the following configuration: @Configuration @EnableWebSecurity public class ResourceServerSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws