Spring OAuth (OAuth2): How can I get the client credentials in a Spring MVC controller?

In this snippet: @RequestMapping(method = GET) public List<Place> read(Principal principal) { principal.getName(); } principal.getName() gives me the user identification but I need a way to...

Laravel Oauth2 client authorizing and redirecting with Guzzle

I'm trying to get access to a rest API using the Authorization Code Flow with Laravel and Guzzle. They specify the requirements: GET https://api.restsite.com/oauth2/authorize ? client_id =...

Spring OAuth2 - There is no client authentication. Try adding an appropriate authentication filter

We have an application which is using spring-security-oauth2:1.0. I was trying to change it to a newer version, spring-security-oauth2:2.0.7.RELEASE. Some classes were removed, some package...

401. That’s an error. Error: invalid_client The OAuth client was not found

I am working with Google Drive File Picker by following this [Google Drive File Picker Example] 3 demo project. I have generated API Key and Client Id. But when I run the project I am getting...

Delphi Google oauth2 token request using Indy HTTP get 400 Bad Request

I am trying to request access and refresh tokens from Google using oauth2, all I am getting is a "HTTP/1.1 400 Bad Request" error. I am using IdHTTP in Delphi XE5 with the...

Authorization Bearer token in HttpClient?

I am trying to access an API using an oauth2 authorization token in Java Here is the client code DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost post = new...

Getting token in Office 365 Oauth2 authentication

I am implementing Oauth 2 authentication for Office 365 account in a java based server side application. After reading the documentation, I have done the following things: I have office 365...

Using GraphServiceClient to get refresh tokens when authenticating using UserPasswordCredential in AuthenticationContext

Sincere apologies if I miss something from this post, as I'm at my wits end after reading around for hours. I'm attempting to write a back-end service (Windows) which will connect to the MS Graph...

Failed to load https://login.microsoftonline.com/common/oauth2/v2.0/token

I'm trying to get a token using the Outlook REST API after I got the code from this url https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize I used a POST request with axios but the...

Getting Invalid grant, malformed auth code while verifying token on server side

We are trying to use Google OAuth in our product. The flow would be to get Client get the auth from the users and send the token to server. On server side I need to verify the token is valid. For...

How do I use google.oauth2 python library?

I'm trying to just make a simple rest call to a secure predict endpoint for a google machine learning project but it can't find the google.oauth2 module. This is my code: import urllib2 from...

Error 'Service has been disabled for this account' while running identity.getAuthToken for chrome extension

I am trying to create an extension that uses the selected data and saves it to google sheets. Sounds pretty simple though but I am stuck at the Auth2 part. Here's what I have done so far: I have...

Querying Azure Log Analytics from C# application

I am struggling for the past few days to query custom logs from Azure Log Analytics. I've been following the tutorial provided by Microsoft from...

Error using OpenID Connect with .NET Core 3.0 ASP.NET Core API service

I'm trying to implement OpenID Connect with Azure AD in a .NET Core 3.0 ASP.NET Core API service. It is an API service only, with no UI, and a separate SPA is used to access the API service. Per...

How to scale horizontally a spring-boot oauth2 server with JDBC implementation

I have a spring boot oauth2 server that uses a JDBC implementation. It is configured as an authorization server with @EnableAuthorizationServer. I'd like to scale that application horyzontally but...

CORS error with MSAL, Angular and ASP.NET Core

I'm trying to build an ASP.NET Core webapi + Angular website where users can login using Microsoft personal or work or school email. I followed the instructions described...

Caused by: java.lang.NoSuchMethodError: org.glassfish.jersey.message.internal.HeaderUtils.asStringHeadersSingleValue

I have a rest client using jersey 2.x and deployed over weblogic 12c. Now when I am sending a GET request through postman. Its showing me the following Exception: Caused by:...

Azure Functions project using Visual Studio Code in java

I am trying to use VSCode to create azure function and deploy it to azure. I followed the official documentation as...

Getting access tokens from Postman: Tokens issued for the 'Single-Page Application' client-type may only be redeemed via cross-origin requests

We recently made a switch from Implicit Grant Flow to Authorization Code Flow with PKCE for our application, and now we're having some trouble getting access tokens from Azure AD from Postman. The...

How to authenticate Google APIs (Google Drive API) from Google Compute Engine and locally without downloading Service Account credentials?

Our company is working on processing data from Google Sheets (within Google Drive) from Google Cloud Platform and we are having some problems with the authentication. There are two different...

Bean ServerOAuth2AuthorizedClientRepository missing error for WebClient Oauth2 Openid service to service connection

I want to make service A to service B connection. Service B is protected by OAuth2. Hence i want to use webClient to do client id / credential authorization. Below is my configuration...

Nginx and Oauth2-proxy: After logging in with Google, redirects back to Oauth login page

I am trying to use Oauth2-proxy as a gateway to my web site with Google auth. The Oauth login page appears, and you can click "Sign In" which takes you to a Google login page, but after logging in...

How to get Avatar from discord API?

I am asking how can I get an avatar of a user who has authorized with oAuth2. https://cdn.discordapp.com/avatars/781264468998488095/ XXXXXXXXXXXXXXXXXXX ?size=128 The first one is client ID, could...

Rails Error: Sprockets::FileNotFound in Users::Sessions#new

The following error occurred while executing the project after git clone, yarn install and bundle install. Error logs Sprockets::FileNotFound in Users::Sessions#new Showing...

How to dynamically change client_secret in Spring Security with Spring boot

Now I have this configuration: spring: security: oauth2: client: registration: sbbol: client-id: zdcffffff client-secret: ffffffffff ...

Spring Cloud Gateway Preflight Cors Error with Angular

I'm trying to use spring cloud gateway with spring security and trying to call the rest API through angular but I'm getting following error Access to XMLHttpRequest at...

How to implement Authorization Code Grant with PKCE in Symfony 5

I'm attempting to implement a Authorisation Grant flow in a Symfony 5 project with the thephpleague/oauth2-server-bundle package. objective The objective is to create a native auth flow and then...

Angular- OIDC code flow - Is there a way to get the authCode from the redirected URL if the Redirect URL is to an external application?

I am using 'angular-oauth2-oidc' library for code flow authentication using Trustbuilder idp. This is my configuration: import { AuthConfig } from 'angular-oauth2-oidc'; export const...

Auth0 - Couldn't retrieve remote JWK set: Read timed out

I'm suffering this one: Couldn't retrieve remote JWK set: Read timed out I am using Java 11 with Spring boot 2.5.3, for dependencies: spring-security-oauth2-jose...

How to manage Google Cloud credentials for local development

I searched a lot how to authenticate/authorize Google's client libraries and it seems no one agrees how to do it. Some people states that I should create a service account, create a key out from...