oauth-2.0

Kubernetes NGINX Ingress: Disable external auth for specific path

泪湿孤枕 提交于 2020-07-22 06:26:06
问题 I would like to be able to disable external authorization for a specific path of my App. Similiar to this SO: Kubernetes NGINX Ingress: Disable Basic Auth for specific path Only difference is using an external Auth provider (OAuth via Microsoft Azure) and there is a This is the path that should be reachable by the public /MyPublicPath My ingress.yaml: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: myIngressName annotations: nginx.ingress.kubernetes.io/auth-signin: https:/

onNewIntent is never gets called - Android

放肆的年华 提交于 2020-07-16 08:40:57
问题 I am trying to create a simple oauth2 flow using AppAuth. I am following this tutorial of AppAuth. It is doing good up to making an oauth request but after authorization when it comes to main activity then it never calls onNewIntent, I also checked the question discussed here. Edit: When I use onResume method then it comes to onResume method after authorization but with "android.intent.action.MAIN" action. Where it should come with "com.google.codelabs.appauth.HANDLE_AUTHORIZATION_RESPONSE"

using oauth in laravel gives Error: redirect_uri_mismatch

耗尽温柔 提交于 2020-07-09 20:58:08
问题 i want to add google oauth to my laravel project using socialite package. i create a project in google developer console with address http://lvh.me which is localhost. and for callback url i add this: http://lvh.me:8000/login/google/callback and i added the routes and functions to my project and authController. now when i hit the address http:lvh.me:8000/login/google it returns for me the error: Error: redirect_uri_mismatch The redirect URI in the request, https://lvh.me:8000/login/google

How to change response when token expire using AuthExceptionEntryPoint?

时光毁灭记忆、已成空白 提交于 2020-07-09 11:47:58
问题 There are two scenarios for 401 Unauthorized response: Token Expired (received from request header) When token expires, It send default spring security exception in response. Token not found (not received in request header) Custom Response It send custom response, using AuthExceptionEntryPoint class. How can i prepare same response into (1)Token Expired that i am sending in (2)Token not found? Following are the configuration: webSecuritycofig.xml <?xml version="1.0" encoding="UTF-8"?> <beans

Keeping user logged in after refresh/using refresh token with Google OAuth2 in React app

橙三吉。 提交于 2020-07-07 07:27:28
问题 I’m building a React app where a key part of the functionality is a user can sign into their Google account and then access a feed of their most recent Google Drive/Docs mentions and notifications. A user arrives at my site where I load the Google OAuth2 client with my client_id , apiKey , scope and discoveryDocs , and they can click a button to sign in. For convenience, I’d like the user to not have to re-login and re-auth with their Google account every time they use the app or the app

Keycloak and Spring Boot web app in dockerized environment

风格不统一 提交于 2020-07-07 06:04:28
问题 Consider the following environment: one docker container is keycloak another docker container is our web app that uses keycloak for authentication The web app is a Spring Boot application with "keycloak-spring-boot-starter" applied. In application.properties: keycloak.auth-server-url = http://localhost:8028/auth A user accessing our web app will be redirected to keycloak using the URL for the exposed port of the keycloak docker container. Login is done without problems in keycloak and the

Keycloak and Spring Boot web app in dockerized environment

≯℡__Kan透↙ 提交于 2020-07-07 06:03:51
问题 Consider the following environment: one docker container is keycloak another docker container is our web app that uses keycloak for authentication The web app is a Spring Boot application with "keycloak-spring-boot-starter" applied. In application.properties: keycloak.auth-server-url = http://localhost:8028/auth A user accessing our web app will be redirected to keycloak using the URL for the exposed port of the keycloak docker container. Login is done without problems in keycloak and the

Keycloak and Spring Boot web app in dockerized environment

拜拜、爱过 提交于 2020-07-07 06:03:06
问题 Consider the following environment: one docker container is keycloak another docker container is our web app that uses keycloak for authentication The web app is a Spring Boot application with "keycloak-spring-boot-starter" applied. In application.properties: keycloak.auth-server-url = http://localhost:8028/auth A user accessing our web app will be redirected to keycloak using the URL for the exposed port of the keycloak docker container. Login is done without problems in keycloak and the

Jhipster OAuth 2.0 / OIDC Authentication Authorization header with bearer token

风流意气都作罢 提交于 2020-07-07 05:00:30
问题 I’ve used Jhipster to generate an app with the security option OAuth 2.0 / OIDC Authentication. I reconfigured said app to use Okta instead of keycloak following the instructions at http://www.jhipster.tech/security/#okta. All works as expected and the login flow performs as expected. I now want to use OAuth 2.0 access_tokens to access my api resources from additional clients (Postman, Wordpress). I’ve retrieved a valid token from Okta added it to my Postman get request for localhost:8080/api

When is access_type = Online appropriate? :OAuth2 - Google API

ぃ、小莉子 提交于 2020-07-04 12:13:10
问题 When requesting OAuth credentials, I can specify the access_type to be Offline or Online. Opting for the Online access type forces the users to approve access to my app each time they login. Why is that? Hasn't the user already approved my app? Update #1: I have my approval_prompt set to 'auto'. If I just log out of Google without deleting any cookies, it doesn't prompt me again. But deleting the cookies brings back the grant screen. Update #2: It works fine through the OAuth Playground. http