oauth-2.0

Revoke Oauth2 token without using Basic Auth

点点圈 提交于 2020-08-10 20:15:48
问题 I'm trying to implement the example from the book OAuth-2.0-Cookbook using Spring cloud OAuth2. I managed to implement his functionality but unfortunately I'm facing a problem: In order to make successful call I have to provide basic authentication credentials( Authorization: Basic YWRtaW46cXdlcnR5 ): @PostMapping("/oauth/revoke") public ResponseEntity<String> revoke(@RequestParam Map<String, String> params) { RevocationService revocationService = revocationServiceFactory .create(params.get(

Revoke Oauth2 token without using Basic Auth

余生颓废 提交于 2020-08-10 20:15:29
问题 I'm trying to implement the example from the book OAuth-2.0-Cookbook using Spring cloud OAuth2. I managed to implement his functionality but unfortunately I'm facing a problem: In order to make successful call I have to provide basic authentication credentials( Authorization: Basic YWRtaW46cXdlcnR5 ): @PostMapping("/oauth/revoke") public ResponseEntity<String> revoke(@RequestParam Map<String, String> params) { RevocationService revocationService = revocationServiceFactory .create(params.get(

“Role” Claim is missing from the token - NET CORE 3.1 & IS4

心不动则不痛 提交于 2020-08-10 19:23:17
问题 I have a service which is responsible for authenticating users. After updating: IdentityServer4 from 2.3.2 to 4.0.2; an issue popped up: The token does not contain the required user claims anymore. The service is configured this way: The Startup.cs contains: applicationBuilder.UseCookiePolicy(); applicationBuilder.UseIdentityServer(); applicationBuilder.UseAuthorization(); //... mvcCoreBuilder.AddAuthorization(ConfigureAuthorization); var auth = mvcCoreBuilder.Services.AddAuthentication

POP3 Authentication with OAuth gives “Err Protocol error. Connection is closed”

老子叫甜甜 提交于 2020-08-10 18:57:30
问题 My company needs to upgrade an application to integrate two-legged OAuth 2.0 for POP3. I'm testing with an outlook online account and trying to authenticate on outlook.office365.com (I've also tried pop3.live.com). I registered for an Exchange Online trial using my test outlook account. I've registered my app on Azure and have enabled API Application Permissions for MS Graph (Mail.ReadWrite, Mail.Send) and Exchange (full_access_as_app). The same outlook account I used for the Exchange

allow or deny login by keycloak groups when logging in

谁都会走 提交于 2020-08-10 18:55:32
问题 I develop applications(SPA Application + API server and windows application) to use OpenID using keycloak. I want to control login when logging in with keycloak using keycloak groups (https://www.keycloak.org/docs/latest/server_admin/#groups). For example, is the following application specification possible? User A -> Group1 and Group2 User B -> Group1 Client A(SPA Application) -> Allow Group1 Client B(Windows Application) -> Allow Group2 results: User A -> Allow to use the SPA Application

OAuth Token API Not Working In Elastic Search Even Security Disabled

*爱你&永不变心* 提交于 2020-08-08 06:58:07
问题 I'm new to Elastic search, using Elastic search version 7.7.1 I want to generate OAuth token by following Elastic Search documentation When I've Tried below call through Kibana to get the OAuth token as per documentation: POST /_security/oauth2/token { "grant_type" : "password", "username" : "elastic", "password" : "password_for_elastic_super_user" } then getting below Error: { "error" : { "root_cause" : [ { "type" : "invalid_index_name_exception", "reason" : "Invalid index name [_security],

OAuth Token API Not Working In Elastic Search Even Security Disabled

社会主义新天地 提交于 2020-08-08 06:57:10
问题 I'm new to Elastic search, using Elastic search version 7.7.1 I want to generate OAuth token by following Elastic Search documentation When I've Tried below call through Kibana to get the OAuth token as per documentation: POST /_security/oauth2/token { "grant_type" : "password", "username" : "elastic", "password" : "password_for_elastic_super_user" } then getting below Error: { "error" : { "root_cause" : [ { "type" : "invalid_index_name_exception", "reason" : "Invalid index name [_security],

Spring Security OAuth2: Purge TokenStore

六眼飞鱼酱① 提交于 2020-08-05 19:29:18
问题 Is there any way to configure Spring Security OAuth2 so it automatically purge TokenStore? I want to remove the expired tokens from time to time. I've seen the InMemoryTokenStore code and it performs a flush every now and again. But JdbcTokenStore does not perform any purge, so Who is in charge of removing the expried tokens from the storage? I've implemented a TokenStore that uses MongoDB as storage, but I have the same problem. Nobody is removing the expired tokens from the storage. 回答1:

Spring Security OAuth2: Purge TokenStore

走远了吗. 提交于 2020-08-05 19:28:14
问题 Is there any way to configure Spring Security OAuth2 so it automatically purge TokenStore? I want to remove the expired tokens from time to time. I've seen the InMemoryTokenStore code and it performs a flush every now and again. But JdbcTokenStore does not perform any purge, so Who is in charge of removing the expried tokens from the storage? I've implemented a TokenStore that uses MongoDB as storage, but I have the same problem. Nobody is removing the expired tokens from the storage. 回答1:

How to access AWS CloudFront that connected with S3 Bucket via Bearer token of a specific user (JWT Custom Auth)

做~自己de王妃 提交于 2020-08-05 09:53:07
问题 I am using a serverless framework to deploy a serverless stack to AWS. My stack consists of some lambda functions, DynamoDB tables and API Gateway. I am protected The API Gateway using what's called lambda authorizer. Also, I have a custom standalone self-hosted Auth service that can generate tokens. So the scenario is that the user can request a token from this service (It's IdentityServer4 hosted on Azure) then the user can send a request to the API Gateway with the bearer token so the API