oauth-2.0

How to retrieve raw request contents before making a REST call in Karate DSL?

孤人 提交于 2021-01-28 20:19:56
问题 I am basically trying to generate AWS signature in order to use them for Authorization. We have third party java libraries (uk.co.lucasweb.aws.v4.signer) to generate this AWS signature. Using the concept of Java Interop, I would be able to call them and retrieve the signature. But I will have to pass all the request details (url, header, param) in the arguments in order to generate it. (getSignature() is a custom java method which was written using the prescribed library) getSignature()

How to persist user consent information in database Identity Server

心已入冬 提交于 2021-01-28 20:02:07
问题 I'm using IdentityServer4 and whenever the user login for the first time the application shows consent screen for the scopes of an application to the user which is expected. If the user clicks "yes" and click on remember option the application is not showing the consent screen when the user login for second time onwards which is also expected. Here the problem I'm facing is whenever I restart the IdentityServer (or when I do the deployment) the user consent information is not persisting and

How can I debug oauth2_proxy when connecting to Azure B2C?

早过忘川 提交于 2021-01-28 19:18:27
问题 I'm new to Kubernetes, and I've been learning about Ingress. I'm quite impressed by the idea of handling TLS certificates and authentication at the point of Ingress. I've added a simple static file server, and added cert-manager, so I basically have a HTTPS static website. I read that NGINX Ingress Controller can be used with oauth2 proxy to handle authentication at the ingress. The problem is that I can't get this working at all. I can confirm that my oauth2-proxy Deployment Service and

spring jwt decoder openid token

牧云@^-^@ 提交于 2021-01-28 13:31:35
问题 External OAuth2 Provider doesn't have public JwkUri, so I tried too override default behavior using following code snippet: @EnableWebSecurity public class DirectlyConfiguredJwkSetUri extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { http .authorizeRequests() .antMatchers("**/oauth2/code/esia**", "**/code/esia**", "**esia**").permitAll() .antMatchers("/user").fullyAuthenticated() .anyRequest().authenticated() .and() .csrf().disable

spring jwt decoder openid token

两盒软妹~` 提交于 2021-01-28 13:31:13
问题 External OAuth2 Provider doesn't have public JwkUri, so I tried too override default behavior using following code snippet: @EnableWebSecurity public class DirectlyConfiguredJwkSetUri extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { http .authorizeRequests() .antMatchers("**/oauth2/code/esia**", "**/code/esia**", "**esia**").permitAll() .antMatchers("/user").fullyAuthenticated() .anyRequest().authenticated() .and() .csrf().disable

OAuth Client Credentials Reissue Access Token vs. Refresh Token

本秂侑毒 提交于 2021-01-28 09:20:45
问题 Read through a few similar posts in regards to the purpose of Refresh tokens in Oauth 2 flows, and they make sense for user attended authentication such as username and password, but for the Oauth2 client credentials flow, why risk utilizing a refresh token at all? Is there less system strain or is it faster to use a refresh token to get a new access token after it has expired as opposed to getting an access token through client id and client secret authentication? Posts Referenced: Why Does

Will an old refresh token still be valid if a new refresh token get issued?

江枫思渺然 提交于 2021-01-28 08:55:47
问题 My application uses a Google refresh token (to get access_token from Google). I have two questions here: I know Google refresh token does not expire for 6 months (see the doc here); say I got a refresh token refresh_token_old at 5:00pm on Jan 1st , and my application requests another refresh token refresh_token_new from Google at 5:30pm on Jan 1st (i.e., just 30 minute later), will the old refresh token still be valid (apparently the old one has not been expired)? -- basically, I am asking if

Will an old refresh token still be valid if a new refresh token get issued?

随声附和 提交于 2021-01-28 08:42:19
问题 My application uses a Google refresh token (to get access_token from Google). I have two questions here: I know Google refresh token does not expire for 6 months (see the doc here); say I got a refresh token refresh_token_old at 5:00pm on Jan 1st , and my application requests another refresh token refresh_token_new from Google at 5:30pm on Jan 1st (i.e., just 30 minute later), will the old refresh token still be valid (apparently the old one has not been expired)? -- basically, I am asking if

WSO2 Api Manager OAuth2 DCR security in public native mobile app

a 夏天 提交于 2021-01-28 07:00:54
问题 I am designing security in a public native mobile application for iOS and Android which is using publicly available API using WSO2 Api Manager (APIM). As such I understand the security issues that are related to this setup and I would like to apply OAuth2 for native apps (according RFC 8252). I understand that the first thing that such application should do is to register with WSO2 APIM server through the interface described in Store API in order to receive unique consumer key/secret for

Azure AD OAuth Client Credentials Grant flow

♀尐吖头ヾ 提交于 2021-01-28 06:58:49
问题 Trying to set up Azure AD OAuth client credentials grant flow for my web api. I'm following the document in https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-oauth2-client-creds-grant-flow. I have to expose my API to a 3rd party. I've created the APP in Azure AD (this is for the client that is requesting my API), generated the secrets and was able to get a response from oauth2/token endpoint. My questions are below: What is the best way to validate the token? Is it by passing